Eclipse plugin for code coverage

EclipseEclipse PluginCode Coverage

Eclipse Problem Overview


I search a code coverage plugin for eclipse. My question is simple:

Which plugin do you use with eclipse for code coverage and why ?

Eclipse Solutions


Solution 1 - Eclipse

Edit (2015) - My current recommendation: EclEmma / JaCoCo.

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.

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.

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 http://www.eclemma.org/jacoco/trunk/doc/integrations.html .

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.

JaCoCo is specifically documented to support Java class files from version 1.0 all the way through 1.8*.

I find their Mission Statement very respect-worthy.


References / Resources:

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.


Previous:

eCobertura.

It does the job, it is free and open-source, it is more up-to-date than EMMA, 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.

If you want to consider a commercial product, I'd consider Atlassian's Clover.

Solution 2 - Eclipse

I like http://codecover.org/

The source highlighting is better than eCobertura, the drill-down is easy to read, selecting test cases is easy, it actually provides statistics for statement, branch, loop and condition coverage ( a lot of plugins only do statement, which is kinda useless ).

We use it at our business and we found it the best plugin by far.

Solution 3 - Eclipse

Coverlipse: http://coverlipse.sourceforge.net/ because it's free

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKivaView Question on Stackoverflow
Solution 1 - EclipseziesemerView Answer on Stackoverflow
Solution 2 - EclipseKaneView Answer on Stackoverflow
Solution 3 - Eclipseka3akView Answer on Stackoverflow