Search code examples
nunitcode-coverage

Code coverage with nUnit?


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?


Solution

  • 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