Got it Covered?

I have recently added a feature that allows the code coverage support built into Visual Studio 2005 Team Suite, Developer or Tester to be accessed using TestDriven.NET. Simply use the new 'Test With... Coverage' button you will find on most of TestDriven.NET's context menus. This will execute a subset of your unit tests with code coverage enabled. You can use it with NUnit, VSTT (Visual Studio Team Test), MbUnit, Ad-Hoc or any other supported test type.

I have created a video showing code coverage being used on the 'Money' unit testing sample that comes with NUnit. As you will probably notice I'm pretty new to using code coverage on unit tests. My instinct when working with the sample was to comment out and make failing tests for any of the un-covered code. I'd be interested to hear from anyone who has successfully incorporated the use of code coverage into their "Red, Green, Refactor" routine.

Code Coverage support is the first of many features that will be included in a commercial TestDriven.NET Team Edition. This however won't be the death of FREE versions of TestDriven.NET. Expect more news in the next day or two.

You can find the latest build here or on FolderShare.

P.S. Let me know if there any other code coverage tools you would like to see supported.

Published Monday, January 23, 2006 5:02 PM by Jamie Cansdale
Filed under:

Comments

# re: Got it Covered?

Clover and NCover please dude.

Monday, January 23, 2006 6:34 PM by Andy

# re: Got it Covered?

Was getting fustrated since this feature wasn't working for one of my main projects but would work fine for a test project. Then it finally hit me, the main project was being signed. Disabling this allowed the coverage to run fine. Is there any plans on supporting coverage for signed assemblies?

I have mainly been using NCover/Nunit (supporting multiple OS's) and would like to see if it could be supported.

Thanks alot, this is an awesome product and excellent feature.

Wednesday, January 25, 2006 6:29 PM by Mitch

# re: Got it Covered?

CoverageEye.Net :)

Friday, January 27, 2006 10:49 AM by Jay Flowers

# re: Got it Covered?

I vote for NCover support, too

Sunday, January 29, 2006 6:47 AM by Frank

# re: Got it Covered?

I to have a no coverage information when running unit tests on a signed assembly.  Additionally any stack trace shown in the 'Test' window does not include line numbers for the source code within the signed assembly.

Was this problem resolved?  If so how?

Thursday, May 6, 2010 12:10 PM by Craig

# re: Got it Covered?

Craig, which version are you using? Could you try this with TD.Net 3.0 RC4 if you're not already using it?

Thanks, Jamie.

Monday, May 10, 2010 7:27 PM by Jamie Cansdale

# re: Got it Covered?

I tried the latest version and it is now working.  Many thanks.

Friday, June 4, 2010 10:24 AM by Craig

# re: Got it Covered?

Wasting time is robbing oneself.

-----------------------------------

Saturday, December 18, 2010 12:47 PM by ipad app store

# re: Got it Covered?

-----------------------------------------------------------

:O So mush Data :O … This is he MOst Incredible Website DUDe…

Saturday, January 8, 2011 4:16 AM by best ipad stand

# re: Got it Covered?

yea wonderful Operate

--------------------------------------------------------------------    

Freshman Seminars

Saturday, March 12, 2011 9:46 PM by hd tv reviews

# re: Got it Covered?

Hi. I read a few of your respective other blogposts and needed to understand if you would be interested in exchanging blogroll links?

--------------------------------------------------------------------        

African Studies

Wednesday, April 27, 2011 10:25 AM by iphone apps best

# re: Got it Covered?

Yes there should realize the reader to RSS my feed to RSS commentary, quite simply

Wednesday, September 14, 2011 8:28 AM by hooher tod