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
0 votes
I'm using CC.NET on Windwos 2003 Server, together with MsBuild, NUnit, TypeMock and NCover.

After installing the new NCover 2.0.1 all projects that uses NCover are broken showing the message: "TypeMock.TypeMockException : *** TypeMock.NET is not enabled, to enable do one of the following: ...."

I always had problems running NCover and TypeMock together, but somehow after reading all the hints releated to that subject I could fix the it. (Sorry, but I could never reproduce what fixed the problem at the end). However I could never make it work using the example from the TypeMock-Documentation (<TypeMockStart> and <TypeMockStop>). Following snippet shows how I call NCover and TypeMock. It worked with NCover 1.5.8 but now it causes the problem mentioned above:

<Target Name="RunTestsWithTypeMock" DependsOnTargets="MakeDirectories;Build;CreateNUnitCmdLineArgs">
<Exec Command="&quot;$(TypeMockRunnerTool)&quot; -first -link NCover &quot;$(NCoverToolPath) cover.console.exe&quot; //a &quot;@(CoverageAssemblies->'%(Identity)',';')&quot; //x &quot;$(NCoverResultFile)&quot; &quot;$(NUnitToolPath) unit-console.exe&quot; $(NUnitCmdLineArgs)"

-Is there a problem with that?
-Why would it work with NCover 1.5.8 but with NCover 2.0.1 not?
-Could Linking/Unlinking in the TypeMockConfiguration influence anything? If yes, should I unlink NCover if using the snippet above?

Thanks for any ideas
asked by Enceradeira (2.3k points)

2 Answers

0 votes

Due to changes done in NCover 2.0.1 TypeMock currently does not support this version. We are working on solving this integration issue and will release a fixed TypeMock version as soon as this will be done.
answered by lior (13.2k points)
0 votes

Just wanted to let you know that the new release of TypeMock (4.1.0) includes support for the new NCover 2.0.1 version.

Please try it and let me know if you have any more problems
answered by lior (13.2k points)