chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!

How to run OpenCover with Typemock? [closed]

+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)TypemockIsolator8.6BuildScriptsTMockRunner.exe" "C:Program Files (x86)NUnit.orgnunit-consolenunit3-console.exe" /result=NUnitResults.xml "binx64ReleaseTestLibrary.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 Filesopencover.4.6.519OpenCover.Console.exe" -output:OpenCoverResults.xml -target:"C:Program Files (x86)NUnit.orgnunit-consolenunit3-console.exe" -targetargs:"binx64ReleaseTestLibrary.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, 2017 by acendrero (3,110 points)
closed Jul 26, 2017 by acendrero

1 Answer

0 votes

"C:Program Files (x86)TypemockIsolator8.6BuildScriptsTMockRunner.exe"

"C:Program Filesopencover.4.6.519OpenCover.Console.exe"

-target:"C:Program Files (x86)NUnit.orgnunit-consolenunit3-console.exe" 




could you try this?

answered Jul 20, 2017 by Raphy (3,890 points)
That's it! Thank you very much