Code coverage with nUnit?

Lieven Cardoen picture Lieven Cardoen · Nov 17, 2009 · Viewed 54.2k times · Source

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?

Answer

Marek Tihkan picture Marek Tihkan · Nov 17, 2009

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