Code Coverage Tools

CodeCoverageTools = tools that enable you measure the CodeCoverage of your tests.


for Java:

MutationTesting: (which isn't really CodeCoverage, but it's related) for .NET (DotNet): C/C++: Perl: for Python: for PHP: for Tcl:



I have started to use Hansel, http://hansel.sourceforge.net/, an open source CodeCoverage tool which integrates seamlessly with JavaUnit. Hansel is a TestDecorator? for JavaUnit. I add test classes incrementally to a coverage test suite with Hansel. We were already quite thorough on unit testing, but actually measuring coverage enabled us to remove more production code, add some tests, and ReFactor code. -- WillemVanDenEnde


I have started using jcoverage, http://www.jcoverage.com/, which is also an open-source CodeCoverage tool. It integrates with Ant using its own custom tasks and can report on both line and branch coverage. I have been quite impressed with it so far. -- CraigPardey?


I have started using Clover, http://www.thecortex.net/clover/, which isn't open source, but is free for open source developers and not that expensive for commercial use. Unlike Hansel, you don't need any magic in your test-suites to make it work, ItJustWorks. Clover can generate HTML/PDF/XML reports and it integrates with EclipseIde, IntellijIdea and NetBeans. After just couple of days, I'm very impressed. -- JuhaKomulainen

"The Clover tool's integration with IntelliJ makes it *very* easy to click on modules with low coverage and see what was covered and what was not." -- a comment by RobertMartin on news:comp.software.extreme-programming


Just came across a slew of tools/utilities from the GroboUtils project @ sourceforge. The intentions are certainly impressive. Anybody had a chance to check it out? http://groboutils.sourceforge.net/ -- RaghuHavaldar?


A good comparison on CodeCoverage tools integrating with Ant can be found at http://www.javaranch.com/newsletter/200401/IntroToCodeCoverage.html -- MattAlbrecht?


A list of java open source coverage tools can be found at: http://java-source.net/open-source/code-coverage.


A good evaluation of about ten different CodeCoverage Tools is at http://europetravelogue.com/blog/pivot/entry.php?id=41. The reviewer found Emma and Clover to be the best for his needs.


Common Lisp has Waters' COVER package: http://www-cgi.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/lang/lisp/code/testing/cover/0.html It's rather compact compared to some of the other tools described on this Wiki page. -- PaulDietz


CategorySoftwareTool


EditText of this page (last edited November 14, 2014) or FindPage with title or text search