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 Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I am trying to run NCover explorer but I keep getting the following exception:
Errors and Failures:
1) Test Error : UnitTesting..Successfull
TypeMock.TypeMockException :
*** Typemock Isolator is not currently enabled.
To enable do one of the following:
* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

I can run NConver.console using:
"C:Program Files (x86)TypemockIsolator.0TMockRunner.exe" -first -link NCover3.0 "C:Program Files (x86)NCoverNCover.Console.exe" //x "d:coverage.xml" "C:Program Files (x86)NUnit 2.5.3in et-2.0 unit-console-x86.exe" "D: UnitTesting.dll"
Is it possible to execute NCover Explorer and run tests within, or is the NCover.console the only way?


asked by teom (2.3k points)

2 Answers

0 votes
Hi Teo,

Can you try running NCover explorer through the command line using TMockRunner? I think that if you use the same command line switches you use for the console coverage tool, you should be able to get the coverage GUI and run Typemock enabled tests through it.

Please write back to let me know if it works.

Typemock Support
answered by doron (17.2k points)
0 votes
Hi Doron,
I did not mentioned in my post that I had tried it without success.
I kept playing with the configuration and as you indicated, the command line worked:
"C:Program Files (x86)TypemockIsolator.0TMockRunner.exe" -first -link NCover3.0 "C:Program Files (x86)NCoverNCover.Explorer.exe"

I had to change on NCover Explorer:
Project OptionsNCover Path"Register NCover profiler assembly before running" (must be unchecked)

Thanks for the help.

answered by teom (2.3k points)