This is a migrated thread and some comments may be shown as answers.

OpenCover - The profiler must be enabled to mock, arrange or execute the specified target

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
elsendar
Top achievements
Rank 1
elsendar asked on 09 May 2016, 01:55 PM
Hi,
I can't make OpenCover 4.5.3207.0 profiler work with JustMock 15.1.224
When I run tests I get errors like this:
Cannot mock *. The profiler must be enabled to mock, arrange or execute the specified target.
Detected active third-party profilers:
OpenCover (from process environment)
Disable the profilers or link them from the JustMock configuration utility. Restart the test runner and, if necessary, Visual Studio after linking.

entry from the Event Viewer:
.NET Runtime version 4.0.30319.0 - The profiler was loaded successfully.  Profiler CLSID: '{1542C21D-80C3-45E6-A56C-A9C1E4BEB7B8}'.  Process ID (decimal): 4124.  Message ID: [0x2507].

It looks like profiler is loaded correctly but it's always disabled. Could you advise?

1 Answer, 1 is accepted

Sort by
0
Mihail
Telerik team
answered on 12 May 2016, 11:44 AM
Hello,

I tested with OpenCover 4.6.519 (https://github.com/OpenCover/opencover/releases/tag/4.6.519) and I was not able to reproduce the problem. I followed the documentation (http://www.telerik.com/help/justmock/integration-opencover.html) and I managed to run an unit test with both JustMock and OpenCover enabled. Can you confirm that you linked properly JustMock and OpenCover profiler through Telerik.JustMock.Configuration.exe tool? You can start the tool from <JUSTMOCK_INSTALL_DIR>\Libraries or in Visual Studio through JustMock->Options menu.

Regards,
Mihail
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
elsendar
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Share this question
or