According to this schema VS2010 Premium and Ultimate has a tool for checking Code Coverage - together with a few other testing tools. Does this support nUnit too, or just MS test?
相关问题
- Visual Studio 2010 randomly says the command line
- (ASP.NET) Project file must include 'WindowsBa
- Partial Form Class C# - Only display code view for
- Why does this code not compile?
- Does Visual Studio 2010 Professional support UML m
相关文章
- How to show location of errors, references to memb
- Log4Net Multiple Projects
- Compiling error in C++ project with C and C++ code
- How to use Mercurial from Visual Studio 2010?
- Attribute filter syntax for code coverage in TeamC
- VSIX: execute code on VS startup
- Copy different file to output directory for releas
- How do we alias a Sql Server instance name used in
Visual Studio 2012 added support for third party unit test frameworks.
The test framework plugins available include:
Adding support is very easy because you can add it from the Visual Studio Extension Manager.
For example you can add the "NUnit Test Adapter".
And now the "Analyze Code Coverage" works with third party unit framework. You can inspect all tests or only one.
And if your using VS 2010 don't be afraid to upgrade to VS2012 because sln files are compatibles (you need VS2010 with SP1).
You need to turn off shadowcopy in NUnit to get it to work. To do so, use the /noshadow flag.
e.g. C:\Program Files (x86)\NUnit 2.6\bin\nunit-console-x86.exe MyLibrary.dll /noshadow
Many of the answers in this thread helped me a lot, but it's hell to get all the little details from multiple answers.
I compiled a list of 6 hints that together with the marked answer by Scott Weinstein did the trick for me: Running NUnit tests in Visual Studio 2010 with code coverage
Although I don't deserve upvotes on both answers, just spare me downvotes for copying:
Upvote them!