Does VS2010 Code Coverage support nUnit?

stiank81 picture stiank81 · Apr 19, 2010 · Viewed 12.3k times · Source

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?

Answer

Be.St. picture Be.St. · Nov 12, 2012

Visual Studio 2012 added support for third party unit test frameworks.

The test framework plugins available include:

  • NUnit
  • xUnit.net
  • MbUnit
  • QUnit
  • Jasmine

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).