I've used both Cobertura (free) and Clover (not-free, but free for FOSS projects meeting certain guidelines). I greatly prefer Clover, but will use Cobertura when circumstances dictate. Cobertura generates summary reports as well as show line coverage, so I would suggest starting there...
I am using Cobertura too. Its good and generating the reports which give line by line coverage. Never tried any other.
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
I've mainly used Cobertura. It works well enough and produces almost as pretty reports as Clover does. It also includes Cyclomatic Complexity for all classes, which is a nice extra.
I think the project might be dead though; they haven't done a release since 2005.
Not shure. The Emma CVS statistics on SourceForge show 0 CVS commits for the last twelve months, but the Emma team actively assists in the user forums, and there is a recent release of the NetBeans Unit Tests Code Coverage Plugin that uses Emma. It colours the covered lines in the NetBeans editor.
Regards, Jan [ January 18, 2008: Message edited by: Jan Cumps ]
I grabbed cobertura and thought "I'll just fire this up, it will work great and then I'll pop back to the forum and say 'thanks everybody! it works great!'" .... and I now have two hours invested in
Here is the beginning of my target. You can see all the ways I have tried to feed the path to log4j.
Maybe that means it's stable . Seriously, we implemented Emma in our central build about two years ago and haven't touched it since. It does everything we need it to and doesn't require we mess with it. I do think Ernest's comment is more likely, but I can hope.
Originally posted by Paul Wheaton: I grabbed cobertura and thought "I'll just fire this up, it will work great and then I'll pop back to the forum and say 'thanks everybody! it works great!'"
I'm surprised it isn't that easy. Emma took about 30 minutes to set up. There's a sample in PickWinners (in JavaRanch's SVN repository) if you want it. Of course that doesn't help if you want to use cobertura.
Anybody spot anything here that I'm not seeing?
Did you try <classpath refid="cobertura.classpath" /> ?
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
posted
0
Hi Paul,
Yes these were there in the fileset dir. path, like all other libraries, but we need to include these separately, since not working without it.
This has been something a little on my back burner - something to do when I get a few minutes here and there.
So here is the final report.
I scrapped it all. It turns out that intellij has emma built in. I had a little trouble finding it, but I sent an email to their support and said "either I can't find it, or I would like to suggest a feature ..." and they replied in about two minutes with one sentence that gave me everything I needed to pull it off.