Test With... Coverage

Last week I announced that TestDriven.NET now has code coverage integration for users of Visual Studio 2005 Team Suite, Developer or Tester. This week I'm happy to announce a solution for all other Visual Studio users! I've now added support for the popular code coverage tool NCover. Peter Waldschmidt the author of NCover has been working with me in order to get the two applications playing nicely together.

When I told to Grant Drake that I had NCover support working, he mentioned that he had written an NCover report viewer called NCoverExplorer. I quickly realized that NCoverExplorer would be an ideal viewer to use with TestDriven.NET. Compared to the default XSL summary transform that comes with NCover, the NCoverExplorer application is lightning fast. There is a tree view that lets you drill down and see your code colorized according to the coverage report. You can find out more and see what NCoverExplorer looks like here.

For the moment NCoverExplorer is bundled with TestDriven.NET. It is likely that at some point it will migrate into the NCover project.

As I mentioned before, TestDriven.NET's NCover support is compatible with all versions of Visual Studio. It does however have the following dependencies:

If you have any suggestions for NCoverExplorer, be sure to let Grant know.

Published Monday, January 30, 2006 5:46 PM by Jamie Cansdale
Filed under:

Comments

# re: Test With... Coverage

Hi Jamie - this looks really neat, but how can it work with all versions of Visual Studio if it requires .net 2?

Visual Studio will load the .net runtime for it's own packages, and I'd expect that runtime to be the version the IDE targets, and since you can't have multiple instances of the runtime loaded in one exe, how can this require .net 2?

Just wondering, 'cos I'd love to use this in 2003, but in a work environment, where we we're not yet ready to migrate to 2005 and .net 2.0.

Cheers!

Monday, January 30, 2006 7:10 PM by Matt Ellis

# re: Test With... Coverage

I'm not sure how he does it, but I'm using it on a machine with only 2003. I DO have to have the 2.0 runtime installed, but it works anyway.

Jamie, what's the magic?

Tuesday, January 31, 2006 3:44 AM by Scott Hanselman

# re: Test With... Coverage

Nunit in this 1339 version (which is 2.2.6) seems to have a bug in the tree, or atleast changed behavior (I reported it here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1420200&group_id=10749&atid=110749
).

Just a heads up.

Tuesday, January 31, 2006 4:06 AM by mawi

# re: Test With... Coverage

Is testdriven built with a specific version of nunit (thinking mostly of the GUI now) or can I say revert to a slightly earlier version?

(perhaps add to FAQ?)

Tuesday, January 31, 2006 4:13 AM by mawi

# re: Test With... Coverage

Test With... Coverage seems to only use VSTS coverage if using it within VSTS. This would be fine if the VSTS coverage actually worked for us, but we're experiencing problems with it that don't occur when using NCover, so I'd like to be able to force TestDriven to use NCover instead. Is this a configuration option somewhere?

Tuesday, January 31, 2006 5:31 PM by Sean Timm

# re: Test With... Coverage

Sean,
There isn't a configuration option for which coverage to use yet. As a temporary workaround, you can rename the following directory.

\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools\

This will cause it to use NCover/NCoverExplorer instead. I'll add this option to my wish list.

Tuesday, January 31, 2006 6:43 PM by Jamie Cansdale

# re: Test With... Coverage

Mawi,
If you send me your messenger ID I'll happily talk you though it.
http://weblogs.asp.net/nunitaddin/contact.aspx

Tuesday, January 31, 2006 7:00 PM by Jamie Cansdale

# re: Test With... Coverage

Great job!
Installed and worked great with Visual Studio 2003. Now I know the coverage I've got lots more tests to write now!
Thanks ;-)

Tuesday, January 31, 2006 7:06 PM by Tim Hastings

# re: Test With... Coverage

I just got around to installing the latest TD.Net/NCover/Explorer bits. Bravo. Nice job to all involved.

Wednesday, February 01, 2006 8:18 AM by Chris

# re: Test With... Coverage

James,

Installed TestDriven.Net on a machine with Microsoft Visual Basic 2005 Express Edition, Microsoft C# 2005 Express Edition, Nunit-Net-2.0 2.2.4. Opened both Visual Basic 2005 and C# 2005, created new class libraries projects, right clicked on solution, project and class files, but no 'Test With...' menu option available. Can you give me instructions on how to install and use TestDriven.Net properly with the Express SKUs?

Thanks in advance,

Luciano Evaristo Guerche
Taboao da Serra, SP, Brazil

Wednesday, February 01, 2006 11:53 AM by Luciano Evaristo Guerche

# re: Test With... Coverage

What a killer idea! I've wanted something like this forever. I installed it as soon as I could, and I love it. I use it at least once an hour, more than the debugger option.

I just have one quibble\feature request. I noticed after a while that the tests were in the coverage measurement. This skews the total coverage for the component. Could you add a setting to include only the project your testing, and not the tests project as well?

The default behaviour should probably to include the tests project to keep the zero friction at zero, but perhaps an advanced setting that would allow us to tweak which projects are passed to NCover?

Thursday, February 02, 2006 10:55 AM by Jason Kemp

# re: Express SKU

This video shows how to get TestDriven.NET working on the Express SKU:
http://www.mutantdesign.co.uk/demos/VCSExpress.html

Saturday, February 18, 2006 1:47 PM by Jamie Cansdale

# re: Test With... Coverage

hi! just want to ask how to run "Test With... Coverage" with web applications.. coz right now, i had tested it only with windows app.. thanks!

Sunday, October 22, 2006 8:46 PM by girl_lash

# re: Test With... Coverage

I'm afraid TestDriven.NET doesn't yet work with web site applications. The way they are compiled and executed it quite different to regular .NET projects. I'm hoping to add support for this in a future version, but can't say if it will work with code coverage.

Monday, October 23, 2006 12:37 PM by Jamie Cansdale

# re: Test With... Coverage

My devs here would *really* like me to report code coverage on *their* web service code. I can easily run ncover with nunit under nant to get coverage of my test code but that is seen as inadequate (cute but inadequate). Maybe I am missing something here? can I modify my nant script to run my tests and report coverage on their code? do I need to have nant, etc. running on the Web Service server?

Thursday, January 25, 2007 12:53 PM by Joshua Stein

# re: Test With... Coverage

[URL=www.4pime.info/vasco-rossi] vasco rossi [/URL]   <a href='www.4pime.info/vasco-rossi'> vasco rossi </a> [URL=http://www.4pime.info/ragazzi] ragazzi [/URL]   <a href='http://www.4pime.info/ragazzi'> ragazzi </a> [URL=www.4pime.info/jesse-mccartney-lyric] jesse mccartney lyric [/URL]   <a href='www.4pime.info/jesse-mccartney-lyric'> jesse mccartney lyric </a> [URL=www.4pime.info/alica-key] alica key [/URL]   <a href='www.4pime.info/alica-key'> alica key </a> [URL=http://www.4pime.info/fitta] fitta [/URL]   <a href='http://www.4pime.info/fitta'> fitta </a> [URL=http://www.4pime.info/messi] messi [/URL]   <a href='http://www.4pime.info/messi'> messi </a> [URL=www.4pime.info/esperanto] esperanto [/URL]   <a href='www.4pime.info/esperanto'> esperanto </a> [URL=http://www.4pime.info/solo] solo [/URL]   <a href='http://www.4pime.info/solo'> solo </a> [URL=http://www.4pime.info/loghi] loghi [/URL]   <a href='http://www.4pime.info/loghi'> loghi </a> [URL=www.4pime.info/video-de-musica] video de musica [/URL]   <a href='www.4pime.info/video-de-musica'> video de musica </a> [URL=http://www.4pime.info/amalfi] amalfi [/URL]   <a href='http://www.4pime.info/amalfi'> amalfi </a> [URL=http://www.4pime.info/genova] genova [/URL]   <a href='http://www.4pime.info/genova'> genova </a> [URL=http://www.4pime.info/devo] devo [/URL]   <a href='http://www.4pime.info/devo'> devo </a> [URL=www.4pime.info/mamma-mia] mamma mia [/URL]   <a href='www.4pime.info/mamma-mia'> mamma mia </a> [URL=http://www.4pime.info/luigi] luigi [/URL]   <a href='http://www.4pime.info/luigi'> luigi </a> [URL=http://www.4pime.info/tgcom] tgcom [/URL]   <a href='http://www.4pime.info/tgcom'> tgcom </a> [URL=http://www.4pime.info/verga] verga [/URL]   <a href='http://www.4pime.info/verga'> verga </a> [URL=www.4pime.info/le-nozze-di-figaro] le nozze di figaro [/URL]   <a href='www.4pime.info/le-nozze-di-figaro'> le nozze di figaro </a> [URL=www.4pime.info/adriano-celentano] adriano celentano [/URL]   <a href='www.4pime.info/adriano-celentano'> adriano celentano </a> [URL=http://www.4pime.info/siena] siena [/URL]   <a href='http://www.4pime.info/siena'> siena </a> [URL=http://www.4pime.info/azzurra] azzurra [/URL]   <a href='http://www.4pime.info/azzurra'> azzurra </a> [URL=http://www.4pime.info/prego] prego [/URL]   <a href='http://www.4pime.info/prego'> prego </a> [URL=www.4pime.info/concertone] concertone [/URL]   <a href='www.4pime.info/concertone'> concertone </a> [URL=www.4pime.info/anne-geddes] anne geddes [/URL]   <a href='www.4pime.info/anne-geddes'> anne geddes </a> [URL=http://www.4pime.info/testi] testi [/URL]   <a href='http://www.4pime.info/testi'> testi </a>

Saturday, June 09, 2007 4:13 AM by ...

Leave a Comment

(required) 
(required) 
(optional)
(required)