true

I wonder what options there are for .net (or C# specifically) Code Coverage, especially in the Lower Priced segment? I am not looking for recommendations, but for a comparison of products based on facts. I know the following:

12 Answers 11

There are pre-release (beta) versions of NCover available for free. They work fine for most cases, especially when combined with NCoverExplorer.

8 upvote
  flag
Doesn't seem to be available anymore... – David d C e Freitas

An alternative to NCover can be PartCover, is an open source code coverage tool for .NET very similar to NCover, it includes a console application, a GUI coverage browser, and XSL transforms for use in CC.Net.

Very interesting product.

UPDATE: OpenCover has replaced partcover.

12 upvote
  flag
PartCover has essentially been replaced by OpenCover (github.com/sawilde/opencover), as PartCover stagnated with support only for .NET 2. – David Keaveny
up vote 71 down vote accepted

I use the version of NCover that comes with TestDriven.NET. It will allow you to easily right-click on your unit test class library, and hit "Test With -> Coverage", and it will pull up the report.

4 upvote
  flag
Gotta love TestDriven.NET; as it happens, I use VSTS, but I tend to use NUnit (not MSTes), and use TestDriven.NET to "Test With -> Team Coverage", which uses the MSTest coverage tool (including colorizing) with my NUnit tests. Fantastic. – Marc Gravell
upvote
  flag
This is what I used as well - until I moved my apps into 64bits :-( – galaktor

See the C# Test Coverage tool from my company, Semantic Designs:

http://www.semanticdesigns.com/Products/TestCoverage/CSharpTestCoverage.html

Very low overhead, handles huge systems of files, intuitive GUI showing coverage on specific files, and generated report with coverage breakdown at method, class and package levels.

upvote
  flag
Hi! May one contact you over MSN/ICQ/XMPP/... or just email? I would like to have a chat with you on how you implemented compiling ASTs back to source. – NikiC
upvote
  flag
@nikic: See my bio for an email contact address. – Ira Baxter
upvote
  flag
@nikic: ... or, you could pose an SO question and leave a forward reference to it here. It might get answered :-} – Ira Baxter
upvote
  flag
I have written you an email ;) If you feel like that being more of an SO-question, tell me so, I'll reask it here :) – NikiC
upvote
  flag
Okay, here goes the question: //allinonescript.com/questions/5832412/… – NikiC
upvote
  flag
given this is a commercial product you should really indicate cost :D – John Nicholas
upvote
  flag
The price is prominently displayed in the summary of results in the question that started this thread. – Ira Baxter

Not sure what the difference with the retail NCover, but there is also an NCover project on sourceforge that is of course open source and free.

2 upvote
  flag
The version on Sourceforge is the basis for the current versions of NCover. It's not being actively worked on/supported anymore but still widely available. They are up to version 3.0 now. – Valien

Code coverage features, as well as programmable API's, come with Visual Studio 2010. Sadly, the only two editions that include the full Code Coverage capabilities are Premium and Ultimate. However, I do believe the API's will be available with any edition, so creating code coverage files and writing a viewer for the coverage info would likely be possible.

JetBrains(of ReSharper fame) has been working on a coverage tool for a little while called dotCover It's showing a great deal of promise.

5 upvote
  flag
dotCover is released and available for purchase since Sep 2010: jetbrains.com/dotcover – gorohoroh
2 upvote
  flag
dotCover is also part of TeamCity, no additional personal licenses required – Oskar Austegard

We've release EAP to dotCover (http://www.jetbrains.com/dotcover) and will be releasing the Beta soon.

TestMatrix is a unit test runner and Code Coverage tool.

TestCocoon is also pretty nice: http://www.testcocoon.org/index.html with active development and user community:

  • Open source (GPL3)
  • Supports C/C++/C# cross platform (Linux/Windows/Mac)
  • CoverageScanner - Instrumentation during the Generation
  • CoverageBrowser - View, Analysis and Management of Code Coverage Result

EDIT:Test cocoon is no longer developed and its creators are now producing a commercial software for C/C++

1 upvote
  flag
TestCocoon was renamed to Squish Coco when the main developer (and TestCocoon) joined froglogic. the current Squish Coco release also supports C#. – Frerich Raabe

I just tested out NCrunch and have to say I am very impressed. It is a continuous testing tool that will add code coverage to your code in Visual Studio at almost real time. At the time as I write this NCrunch is free. It is a little unclear if it going to be free, cost money or be opened source in the future though.

http://blog.ncrunch.net/image.axd?picture=2012%2f4%2fPerformanceCoverage.jpg

3 upvote
  flag
Not free as of 3/20/2014 – user600838

http://www.semanticdesigns.com/Products/TestCoverage/CSharpTestCoverage.html

Very low overhead, handles huge systems of files, intuitive GUI showing coverage on specific files, and generated report with coverage breakdown at method, class and package levels.

Not the answer you're looking for? Browse other questions tagged or ask your own question.