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 cannot get TypeMock and NCover to work together. I'm using TypeMock's msbuild tasks. NCover starts and prints "Waiting for profiled application to connect". NUnit executes tests, but it never connects to NCover. At the end NCover prints "Profiled process terminated. Profiler connection not established."

What am I doing wrong?

I'm using TypeMock 3.6.0.0, NCover 1.5.4. and NUnit 2.2.5

Thanks,
Patko
asked by patko (600 points)

1 Answer

0 votes
Hi,
You will need a license for this. You have received a Demo License with the registration, so register the license.
Then you will have to use the following command
<Target Name="TestWithTypeMock">
  <TypeMockStart Link ="NCover" ProfilerLaunchedFirst="true"/>
  <Exec ContinueOnError="true" Command="$(NCover) $(NUnit) Test.dll"/>
  <TypeMockStop/>    
</Target>


if this doesn't work, please send the value of the following registry key:
HKEY_CLASSES_ROOTCLSID{6287B5F9-08A1-45E7-9498-B5B2E7B02995}InprocServer32
answered by scott (32k points)
...