Fog Creek Software
Discussion Board

Coverage statistics using nUnit?

My current project is doing a combination of Agile development and PSP/TSP.  We are using nUnit extensively and the client manager is interested in getting an automated report on the coverage of the tests.  Ideally, we'd like to run an nUnit suite against one or more assemblies and get a report on the percentage of lines in the assembly that were executed by the test suite.  The only tool I found in a quick search is the DevPartner Studio product from CompuWare.  Anyone used this tool or have reccomendations for a different one?

Ted Graham
Friday, December 12, 2003

Take a look at Rational PurifyPlus.

Pavel Levin
Friday, December 12, 2003

We've not found any yet, rational feels a bit expensive. I'm not buying anything until after whidbey ships as I hate paying for several versions just cos MS have changed the compiler.

Since we probably will be using C# generics[1] and it's the only whidbey generation feature we need we're investigating rolling our own coverage tester at the moment with .NET 2003 then porting to whidbey. Alas the debugger documentation is kinda sparse. It looks like you single step by running IL a block at a time then use a symbol table to map IL->source code line numbers.

If we do succeed we'll probably write it up and post it somewhere on the web.

[1] We have a plan B in case whidbey is VERY late but I don't think we'll need it.

Peter Ibbotson
Friday, December 12, 2003

*  Recent Topics

*  Fog Creek Home