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!

Problems TypeMock 3.7.1 (PE) + NCover 1.5.8 + NUnit 2.4.2

+1 vote
Hi all,
I've the following weird problem: if I run all the tests of my suite from visual studio (using a graphical runner), they work fine.
If I run my test from the console (using nunit-console), they continue to work fine.
Anyway, if I want to do some coverage, and try to run my test with ncover, I receive many failures on failed expectations (most of them continue to pass without problem).
How can I investigate better this problem?
Thank you for your help,
asked Nov 27, 2007 by Deimos (1,240 points)

4 Answers

0 votes
To run TypeMock with NCover you need to link TypeMock with NCover.
There are several ways to do this. See the details here
Please note that this feature needs Professional or Enterprise license.

Hope it helps
answered Nov 27, 2007 by ohad (37,080 points)
+1 vote
Hi Ohad,
yes, I know, infact I'm using a Professional Edition. I tried all the available possibility:

* By linking NCover from the TypeMock configuration dialog
* By using TMockRunner with -link option

But in both the cases I have some tests are failing. Please note that most of the tests are passing (say 95%) and they also use TypeMock; only a few tests fail (say 5%) when running with NCover.

How can I fix this?
answered Nov 28, 2007 by Deimos (1,240 points)
+1 vote

I would try an isolate the problem.
try and see if the failed tests are still failing if they are run alone.

If they do, I would suggest posting one of them here along with the exact error and the method by which you run them.

Also note that you are using quite an old version.
If possible, you can try to see if the problem persist with a newer version.
answered Nov 28, 2007 by lior (18,340 points)
+1 vote
Hi Lior,
I already tried to run the failing tests in isolation, and they work fine. It is clear that are failing due something that is happening before their execution.
Also, we'd like to switch to a newer version, but we postponed this decision due the heavy performance penalties of the latest TypeMock version (see https://www.typemock.com/community/viewtopic.php?t=603).

Also, I tried to exclude from the run the failing fixtures, but I get errors on new fixtures. Please note that most of the errors are TypeMock.VerifyException on missing expectations.
answered Nov 28, 2007 by Deimos (1,240 points)