4

I'm looking for an answer on code coverage tools. I know variations on this question have been asked before:

so it's possible this is a terrible question. But for the most part those questions are years old, and I'm looking to see if there are any new tools that have emerged.

I am aware of:

But as far as I can tell (see below), the two open source projects are essentially dead. A paid solution is an option, but I'd prefer open source if possible.

Has open source essentially given up on innovating code coverage software, or has the energy gone into some new library that I'm not aware of?

Cobertura

Latest version: 1.9.4.1, released 3/3/2010
Last commit: 1/7/2011

Emma

Latest version: 2.1.5320, released 6/22/2005
Last commit: (uses CVS, so there are no changesets, but commits are 6-8 years old)
Developer forums have only a handful of posts

Clover

Latest version: 3.1.5, released 4/25/2012
Community
  • 1
  • 1
Ryan Nelson
  • 4,466
  • 5
  • 29
  • 45
  • 1
    An old last commit or version does not necessarily mean that the project is dead ; maybe it has reached a point where is does not need additional development and is considered stable. I still use Cobertura as an IDE plugin. – Olivier Croisier Aug 02 '12 at 23:15
  • Cobertura is the one I've historically used, and it's generally worked well for us. But my concern with projects with no commits or activity is who handles the bugs? I guess it's open source, so maybe the answer is: me! – Ryan Nelson Aug 02 '12 at 23:18
  • I guess so :) Or maybe you can get the bug fixed at a Hackaton event, where people gather to code/debug something ? – Olivier Croisier Aug 02 '12 at 23:20
  • Yeah, that's a possibility too. – Ryan Nelson Aug 02 '12 at 23:54
  • Or start a bounty for it on [FreedomSponsors](http://www.freedomsponsors.org) ;) – Tony Lâmpada Aug 03 '12 at 00:10
  • 3
    @Olivier Just use Java 7 language constructs and you'll see why it's a problem a product like Cobertura isn't updated. – Hilbrand Bouwkamp Aug 09 '12 at 08:05

1 Answers1

8

There is a open source code coverage tools that has been actively updated rencently.

JaCoCo http://www.eclemma.org/jacoco/

It is by the team developed EclEmma, and SONAR is supporting it in recently years. Sounds promising to me.

Adrian Shum
  • 38,812
  • 10
  • 83
  • 131
  • +1 Another tool is the one I develop, JMockit Coverage (which gets released as part of the JMockit toolkit). This tool brings (or attempts to bring) a few innovations: 1) "true" line coverage (where separately executable segments in a line of code are measured and displayed separately, rather than as a whole as in other tools); and 2) a *path coverage* metric. – Rogério Nov 30 '15 at 14:38