@SET JUSTMOCK_INSTANCE=1
@SET COR_ENABLE_PROFILING=1
@SET COR_PROFILER={B7ABE522-A68F-44F2-925B-81E7488E9EC0}
When I run XUNIT, this works fine. :
xunit.console %TestsDLL% -nunit %ReportDirectory%\%CurrentProjectRunning%.%ldt%.xml
Results:
.NET Runtime version 4.0.30319.0 - The profiler was loaded successfully. Profiler CLSID: '{B7ABE522-A68F-44F2-925B-81E7488E9EC0}'.
No error the profiler seems to work.
When I run XUNIT from OpenCover it seems to lose these settings?
OpenCover.console.exe -target:"c:\xunitrunner\xunit.console.exe" -mergebyhash -filter:"+[*]*" -targetargs:"%TestsDLL% -nunit %ReportDirectory%\%CurrentProjectRunning%.%ldt%.xml" -output:%ReportDirectory%\%ldt%coverage.xml -register:user
Results:
.NET Runtime version 4.0.30319.0 - The profiler was loaded successfully. Profiler CLSID: '{1542C21D-80C3-45E6-A56C-A9C1E4BEB7B8}'.
With this error:
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. Rest
art the test runner and, if necessary, Visual Studio after linking.