Individual Tests and TestFixture Results do not have the sam
Individual Tests and TestFixture Results do not have the sam
I have a test fixture for a DAL that we are building and when I run the test fixture as a whole, then I get different coverage results than if I run each individual test by itself. I get the same behavior when I run under testdriven/vs2005 as I do when I run from the cmd line. I have tests that show complete coverage of a section of code when run individually, however when I run the entire fixture, the same section will fail coverage.
Regardless of which method is used, I get 100% pass rate on my unit tests.
Some of the tests have mocked objects running under TypeMock, but I have a license and have TypeMock linked to NCover. Also, the tests with mocks are passing.
The type under test has a generic type parameter at the class level - perhaps this has something to do with the problem?
Thanks for your help!
Gary
Re: Installation Required?
The only thing you need is a registration of CoverLib.dll - which you can add to your NAnt script. We have got a workaround for doing xcopy style execution which hopefully Peter will incorporate into NCover 1.5.6 (creating the registry entries on the fly without needing local admin rights). Jamie Cansdale also created a neat little wrapper exe "NCover.ConsoleX.exe" that does the same. Not sure what distribution plans if any he has for it.
Re: Installation Required?
That's good news, and thanks for the quick response!