Hello,
I'm trying to write a powershell script to run my tests, create code coverage using OpenCover and then generate a report using ReportGenerator. However I'm running into the Profiler error:
The profiler must be enabled to mock, arrange or execute the specified target.
Detected active third-party profilers:
* (from process environment)
This only happens when run from the powershell, if I run it from command line the tests run fine. The command I am using is:
packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -mergebyhash -target:"%VS140COMNTOOLS%\..\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" -targetargs:"JustMockUnitTests\bin\x64\Debug\JustMockUnitTests.dll /InIsolation /platform:x64 /logger:trx /Parallel" -output:"OpenCover.xml"
Any thoughts would be much appreciated.
Thanks
-Steve