views:

1373

answers:

2

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?

+5  A: 

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

Marek Tihkan
Just downloaded TestDriven.NET and apparently nCover is integrated in it. Very cool, the code coverage. Makes you see right away if you have things not covered in certain classes. Thx.
Lieven Cardoen
A: 

See SD C# Test Coverage. Comes with built-in visualization of test coverage data over your source code as well as summary reports.

Ira Baxter