Code Coverage with TestDriven.Net in Visual Studio 2003
October 30, 2007 at 11:22 am Leave a comment
In VS2003 you can’t add your .exe to project reference of separate test assembly. So it is well known practice to copy it to some folder, rename to .dll and reference it from there. (Note: VS2005 allows you to reference .exe)
After performing such steps when you run Coverage from TestDriven.Net context menu, you can notice that there is coverage only for the test assembly.
Solution: Many chances you didn’t copy .pdb file for the .exe, but NCover can only profile assemblies which have .pdb files for them
Entry filed under: .net, tip. Tags: code coverage, testdriven.net, testing, vs2003.
Trackback this post | Subscribe to the comments via RSS Feed