How to run OpenCover with Typemock?

+1 vote

Hi, I'm currently using a trial version of TypeMock and studying how to integrate it in my project. I use Visual Studio 2017 as well as NUnit and OpenCover for unit testing.

I can run NUnit along with Typemock without any trouble. This works fine from the command line:

"C:\Program Files (x86)\Typemock\Isolator\8.6\BuildScripts\TMockRunner.exe" "C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" /result=NUnitResults.xml "bin\x64\Release\TestLibrary.dll"

However, I can't make it work along with OpenCover. Please notice that I have the OpenCover.Profiler.dll registered and that I have selected OpenCover4 as the Code Coverage tool in the Typemock Isolator configuration tool. But that the following command does not work:

"C:\Program Files\opencover.4.6.519\OpenCover.Console.exe" -output:OpenCoverResults.xml -target:"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" -targetargs:"bin\x64\Release\TestLibrary.dll"

I get an error message saying that only the opencover profiler is enabled. I thought that manually linking the Isolator with OpenCover was enough. How can I do it?

 

 

 

 

 

closed with the note: Solved
asked Jul 11 by acendrero (130 points)
closed Jul 26 by acendrero

1 Answer

0 votes

"C:\Program Files (x86)\Typemock\Isolator\8.6\BuildScripts\TMockRunner.exe"

"C:\Program Files\opencover.4.6.519\OpenCover.Console.exe"

-target:"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" 

-targetargs:"bin\x64\Release\TestLibrary.dll"

-output:OpenCoverResults.xml

 

could you try this?

answered Jul 20 by Raphy (2,440 points)
That's it! Thank you very much
...