Code coverage with nUnit?

NunitCode Coverage

Nunit Problem Overview


Is there a way to see the code coverage when using nUnit? I know there's such a feature in Visual Studio, but can you use it with nUnit or only with the built-in vs unit tests?

Nunit Solutions


Solution 1 - Nunit

You can use NCover. Now its commercial, but version 1.5.8 (at the bottom of page, community edition) is still free and if you want to visualize it, then use NCoverExplorer.

EDIT:

It's possible to wrap nUnit or mbUnit with Visual Studio code as well. VSTS Code Coverage Runner

Solution 2 - Nunit

Visual Studio 2012 finally added support for third party unit test framework.

You can add frameworks using the Extension Manager and automatically "Code coverage" starts working with installed framework.

Code coverage is available only in Visual Studio Ultimate or Premium editions.

See my reply in Does VS2010 Code Coverage support nUnit?

Solution 3 - Nunit

PartCover is free and I've just blogged how to use it with NUnit See this link

Solution 4 - Nunit

See http://www.semanticdesigns.com/Products/TestCoverage/CSharpTestCoverage.html">SD C# Test Coverage. Comes with built-in visualization of test coverage data over your source code as well as summary reports.

Solution 5 - Nunit

If you work at a company with a security-/saving-money-/hassle-employees- policy restricting your choice to VS2010 (Premium or Ultimate), see my answer to: https://stackoverflow.com/questions/2912878/running-nunit-tests-in-visual-studio-2010-with-code-coverage/18575469#18575469

There, I refer to this other answer, but also give some more details than that: https://stackoverflow.com/questions/2665799/does-vs2010-code-coverage-support-nunit

I know, copied/referring answers (esp. of others) are worth downvoting, but as I said, I give some details, which would've helped me quite a lot.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLieven CardoenView Question on Stackoverflow
Solution 1 - NunitMarek TihkanView Answer on Stackoverflow
Solution 2 - NunitBe.St.View Answer on Stackoverflow
Solution 3 - NunitTorbjörn NomellView Answer on Stackoverflow
Solution 4 - NunitIra BaxterView Answer on Stackoverflow
Solution 5 - NunitNo answerView Answer on Stackoverflow