Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Edit (2015)</strong> - My current recommendation: <a href="http://www.eclemma.org/" rel="nofollow noreferrer">EclEmma</a> / <a href="http://www.eclemma.org/jacoco/" rel="nofollow noreferrer">JaCoCo</a>.</p> <p>Not sure why I didn't see this back in January 2012, as there was clearly active development with new versions consistently being reproduced even back then.</p> <p>I've since become a bit frustrated with Cobertura / eCobertura, as development since seems to have stalled, with support for current Java versions starting to be somewhat lacking.</p> <p>JaCoCo may have advanced since I last looked at this in 2012 (or I simply missed it entirely, or was looking at EMMA vs. JaCoCo) - but the current version provides excellent support built-in to Eclipse (provided by EclEmma) as well as many other IDEs, support for Apache Maven, Apache Ant, command-line, Java API, and many other third-party integrations. Please refer to the complete list at <a href="http://www.eclemma.org/jacoco/trunk/doc/integrations.html" rel="nofollow noreferrer">http://www.eclemma.org/jacoco/trunk/doc/integrations.html</a> .</p> <p>I am now switching some of my projects over to JaCoCo from Cobertura, and am very impressed by the integration and results - both in Maven reports as well as Eclipse. Not sure about competing solutions, but JaCoCo can even be configured to fail a build if certain thresholds of code coverage are not met.</p> <p>JaCoCo is specifically documented to support Java class files from version 1.0 all the way through 1.8<a href="http://www.eclemma.org/jacoco/trunk/doc/faq.html" rel="nofollow noreferrer">*</a>.</p> <p>I find their <a href="http://www.eclemma.org/jacoco/trunk/doc/mission.html" rel="nofollow noreferrer">Mission Statement</a> very respect-worthy.</p> <hr> <p><strong>References / Resources:</strong></p> <p>Especially as this question has unfortunately been closed, here is a mini-directory of some of the various references and resources that I used in making my decision - and which I encourage everyone here to refer to in order to make their own decisions.</p> <ul> <li><a href="https://en.wikipedia.org/wiki/Java_Code_Coverage_Tools" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Java_Code_Coverage_Tools</a> - by Wikipedia's nature is more of a "living document", and will hopefully remain updated with any new related tools that may become available.</li> <li>The following should also somewhat fall into the same category of a "living document", but fall under probable bias / conflicts of interest - as each is from the vendor or organization that also produces such a tool: <ul> <li><a href="http://www.eclemma.org/resources.html" rel="nofollow noreferrer">http://www.eclemma.org/resources.html</a> (Provides EclEmma, JaCoCo)</li> <li><a href="https://confluence.atlassian.com/display/CLOVER/Comparison+of+code+coverage+tools" rel="nofollow noreferrer">https://confluence.atlassian.com/display/CLOVER/Comparison+of+code+coverage+tools</a> (Provides Atlassian Clover)</li> </ul></li> <li>Presumably independent but dated reviews and comparisons: <ul> <li><a href="https://onlysoftware.wordpress.com/2012/12/19/code-coverage-tools-jacoco-cobertura-emma-comparison-in-sonar/" rel="nofollow noreferrer">Code Coverage Tools (JaCoCo, Cobertura, Emma) Comparison in Sonar</a> (2012-12-19, Patroklos Papapetrou, onlysoftware.wordpress.com)</li> <li><a href="https://stackoverflow.com/questions/9046171/eclipse-plugin-for-code-coverage">Eclipse plugin for code coverage</a> (2012-01-28, stackoverflow.com)</li> <li><a href="http://kurlenda.blogspot.com/2010/12/test-coverage-jacoco-vs-clover2.html" rel="nofollow noreferrer">Test coverage: jaCoCo vs Clover2</a> (Jakub Kurlenda, 2010-12-28, kurlenda.blogspot.com)</li> <li><a href="http://www.copperykeenclaws.com/notes-on-cobertura-vs-emma-vs-clover/" rel="nofollow noreferrer">Java Code Coverage: Cobertura vs. Emma vs Clover</a> (Tom Borthwick, 2010-10-23, copperykeenclaws.com)</li> <li><a href="http://www.sonarqube.org/pick-your-code-coverage-tool-in-sonar-2-2/" rel="nofollow noreferrer">Pick your code coverage tool in Sonar 2.2</a> (2010-08-05, Evgeny Mandrikov, sonarqube.org)</li> <li><a href="http://www.ibm.com/developerworks/java/library/j-cq01316/" rel="nofollow noreferrer">In pursuit of code quality: Don't be fooled by the coverage report</a> (Andrew Glover, 2006-01-31, ibm.com)</li> </ul></li> </ul> <hr> <p><strong><em>Previous</em></strong>:</p> <p><a href="http://ecobertura.johoop.de/" rel="nofollow noreferrer">eCobertura</a>.</p> <p>It does the job, it is free and open-source, it is more up-to-date than <a href="http://emma.sourceforge.net/" rel="nofollow noreferrer">EMMA</a>, and it is used by most of the other online open-source projects I'm familiar with. It also integrates very well into Maven - including some rather nice-looking reports.</p> <p>If you want to consider a commercial product, I'd consider Atlassian's <a href="http://www.atlassian.com/software/clover/overview" rel="nofollow noreferrer">Clover</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload