The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Test Code Coverage with NCover

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael

Posts: 1010
Nickname: targetp
Registered: Sep, 2004

Michael is a leader of TargetProcess.com project
Test Code Coverage with NCover Posted: Feb 16, 2005 4:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Michael.
Original Post: Test Code Coverage with NCover
Feed Title: TargetProcess Blog
Feed URL: http://feeds2.feedburner.com/Targetprocess
Feed Description: Agile development and processes, project management, programming practices, patterns, XP(eXtreme Programming), SCRUM, Crystal, TargetProcess news, what else?
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Michael
Latest Posts From TargetProcess Blog

Advertisement
It is desirable to know test code coverage sometimes. It indicates quality and amount of tests and helps to ensure that TDD going right. This even could be one of the metrics for release acceptance (code coverage should be no less than 75%, for example).

NCover is a free tool for test code coverage metric generation (for .NET projects). It integrated pretty good with NUnit and within 10 minutes or so you may confugure it and get useful report.

Install NCover and NUnit and add ncover.console.exe and nunit-console.exe into PATH environment variable. Open comand prompt and to to the folder where your DLL with tests located. And just run the following command

> ncover.console /c nunit-console Tests.dll /a Project1;Project2;Project3

By the way, default stylesheet is very bad. You can get more better one here, Replace original Coverage.xslt with new in NCover folder, it will be copied each time when ncover runs.

If you use NAnt, you may add NCover report generation as a task.

Read: Test Code Coverage with NCover

Topic: www.softwarewithstyle.com up Previous Topic   Next Topic Topic: Revenge of the Error

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use