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

2 posts, 0 answers
  1. elsendar
    elsendar avatar
    1 posts
    Member since:
    Aug 2015

    Posted 09 May Link to this post

    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?
  2. Mihail
    Admin
    Mihail avatar
    75 posts

    Posted 12 May Link to this post

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top