User765876
User765876

Reputation: 135

Unit Test with code coverage and formal output documentation

What are some options for unit testing tools that show code coverage including lines of code that have actually been tested.

Needs to create a graphical report to show the output (not just an xml file), showing pass fail and coverage in a format readable by nontechnical people.

Upvotes: 1

Views: 251

Answers (2)

Bob The Janitor
Bob The Janitor

Reputation: 20792

There are a lot of tools, Visual Studio 2013 Pro even has a build in coverage tool.

Here are some commercial tools I have personal experience with:

  1. NCrunch - Automated test runner with a coverage report (use everyday)
  2. DotCover - Sold coverage tool by jet brains that ties into resharper really well (used until I found nCrunch)
  3. NCover - It was really the first and still running strong (creates an xml report that then is consumed by Reportbuilder to make graphical reports)

For free tools I like OpenCover, basically a free open source version of nCover, even uses the same report gen tools and is based on the now dead (in maintenance mode) PartCover. This is what I use on our Jenkins build servers.

If you are looking to get this on a build server Jetbrains Team City has dotCover built in for both the free and enterprise versions and TFS has it own coverage tool as well. For doing Jenkins or Hudson there are plugins for displaying the report but you have to set up and run the tools as part of the build process.

Upvotes: 2

Neil M.
Neil M.

Reputation: 456

Showing how it's been tested, I haven't seen.

Dot Cover is a pretty all encompassing plug in. It has an export option I believe. I'd suggest taking it for a free spin and seeing if it fits your needs.

Test Driven .net may be a cheaper solution for you - and is a pretty good alternative.

Upvotes: 0

Related Questions