views:

102

answers:

4

Hi guys

I would like to hear what free coverage tool you folks are using that can be used as plugin in eclipse. There are bunch of threads on this topic, but some of them are not the most updated.

AFAIK, these 3 are the most popular ones:

  1. EclEmma - seems like an updated great option

  2. EMMA - the last time site was updated was on (2006) is it still maintained and updated ?

  3. Cobertura

According to this post EclEmma - seems like the most downloaded tool.

What is your experience with these or any of these?

A: 

Not sure about Eclipse plugin, I use Netbeans and IntelliJ. Cobertura is working fine for me. Further, with IntelliJ I used the Emma plugin in the past, and that worked great too.

Adeel Ansari
A: 

From my experience:

  • as Eclipse plugin - EMMA

  • as Maven plugin - Cobertura

  • if you can spend some money: Atlassian Clover, it's the best coverage tool, but paid

iirekm
+1  A: 

EclEmma usually does it for me.

You may also want to try Google also released Instantiations' CodePro AnalytiX for Eclipse. It supports code coverage and comes with a herd of other great stuff (static code analysis, code metrics...).

haylem
I looked at that Google's tool - looks very interesting. I'm eager to try it today after work. :-)
iirekm
@iirekm: It is pretty decent. A bit resource intensive on big code-bases though. It's quite nice that they decided to distribute it for free since their acquisition of Instantiations.
haylem
Well, most programmer tools are resource-eaters. Even Eclipse or IntelliJ alone needs quite a lot of memory. What to say - programmers need more powerful computers that an average user.
iirekm
Thanks for your answers ! My dilemma is not solved yet, guess i will have to try them out and see what works best for me. The CodePro AnalytiX sounds really promising (when google behind things it usually works great). Today I just stumbled upon a vote of confidence in favour of Coberta, while reading the Manning Junit second edition - they are talking about Coberta integration.
DP
A: 

I've been very satisfied with EclEmma. It integrates well with JUnit so that I can coverage test anything from single test methods to the whole project. With TestNG though I either had to manually specify run configurations or run the tests first and then choose to run them with coverage enabled. This probably had more to do with the not-so-polished state of the Eclipse's TestNG plugin than with EclEmma.

In our CI we use Sonar which has Cobertura built-in, it has worked very well.

ponzao