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 using TypeMock Enterprise (Demo). Everything works fine except when I user TestDriver.Net's "Test with Coverage" feature. I'm in VisualStudio 2005. I have TestDriven.NET 2.0 and NCover 1.5.4 installed. Our tests are built and run using MBUnit 2.3.

This feature will work with tests that don't have TypeMock recorder code in them. But those that do fail with a TypeMockException:
"Cannot use Return in this sequence, there must be a mocked statment first"

From the docs, I learn this is expected. Ok, so I go to TypeMock Configuration in VStudio, and Link with NCover.

Now, when I run any test using "Test with Coverage" (those with and without TypeMock recorder code), I get 0 tests run, with an error:
"NCover couldn't create a coverage report."

Looking for some direction/help please. We like the product so far, but this is a real problem. Thanks
Riley
asked by rileytaylor (3.2k points)

1 Answer

0 votes
Hi,
The coming version of TestDriven takes care of this problem.

Until you get that version, do the following:
1. Disable TypeMock in Visual Studio (Tools menu)
2. Link NCover and TypeMock
3. Restart the rocket
4. Test->With Coverage
answered by scott (32k points)
...