the blog for developers

Current code coverage tools (for maven)?

What to use for code coverage? Clover seems the only option but costs (which I will probably buy when my project makes some money). Emma and Cobertura seem to be dead, IDEA code coverage doesn’t work – obviously – with maven. Any ideas?

You can leave a Reply here. Of course, you should follow me on twitter here.

You can share this post!
Do you want to tell others about this article? Use the social bookmark icons to submit this artice to the service of your choice. Thanks.

About the author: Stephan Schmidt is head of development at brands4friends. He has more than 15 years of internet technology experience and 10 years experience in agile. He was head of development, consultant and CTO and is a speaker, author and blog writer. He specializes in organizing and optimizing software development helping companies by increasing productivity with lean software development and agile methodologies. Want to know more? All views are only his own.
Leave a reply.

Comments

french_c

If you are about to spend money you might consider looking into teamcity. You get Idea code inspections and maven2 serverside.

.oO(Since I did not test teamcity so far please share your experiences)

stephan

Good idea, didn’t think of that, would be an excuse to try TeamCity (which I wanted to try since I’ve first heard of … ;-)

IDEA uses EMMA under the hood so you might want to give it a second look. I haven’t tried their Maven integration recently but I know there is a plugin out there for it.

On the other hand, while Cobertura isn’t progressing at a very rapid speed, the functionality that is there works pretty well already and is what I still use most of the time. Not having it in the IDE is a drawback though.

Oliver

I second french_c, we do use Teamcity with maven2, code inspections servser side and remote runs for commits. The only drawback of course is that we did not settled yet on a final set of inspections.

stephan

Then Teamcity, here we come!

Before you write Clover2 off altogether keep in mind that it isn’t really comparable to Emma/Corbutura – per test coverage is worth it’s weight in gold. As well as solid maven integration the intellij plugin http://plugins.intellij.net/plugin/?id=132 is very slick compared to the built in stuff.

It sucks that it is expensive, but those 30 day evals are pretty easy to get ;)

[I'm of course biased being from the Clover team]

stephan

Clover is excellent.

If I’d have enough money for Clover, I’d buy Clover, no discussions about that. I’m certain that it’s worth the price.

If I don’t have the money – well I don’t have it. I need something else ;-)

Leave a Reply

What people wrote somewhere else:

Additional comments powered by BackType

Guide to CodeMonkeyism

Over the last 4 years I wrote many articles on this blog. To make it easier for you to find the relevant ones, I've organized them into topics.

Top 10

6 reasons why my VC funded startup did fail

Go Ahead: Next Generation Java Programming Style

Java Interview questions: Write a String Reverser

The dark side of NoSQL

7 Bad Signs not to Work for a Software Company or Startup

Is Java dead?

Scala vs. Clojure

Never, never, never use String in Java

No future for functional programming in 2008 – Scala, F# and Nu

Clojure vs Scala, Part 2

Job Seeker

Another Good (Java) Interview Question

7 Bad Signs not to Work for a Software Company or Startup

Java Interview questions: Write a String Reverser (and use Recursion!)

Java Interview questions: Multiple Inheritance

As a Manager: What I value in developers

Top 10 Tips (+1) to Get a Pay Raise

Java Developer

Is Java Dead?

Go Ahead: Next Generation Java Programming Style

Be careful with magical code

All variables in Java must be final

Never, never, never use String in Java

Bending Java: More readable code with methods that do nothing?

Startup/CTO

Development Dream Teams

6 reasons why my VC funded startup did fail

American vs. European style of Software Development

12 Things to Reduce Your Lead Time and Time to Market

The high cost of overhead when working in parallel

Essential storage tradeoff: Simple Reads vs. Simple Writes

Agilist

What Developers Need to Know About Agile

5 Practices Better to Change in Your Scrum Implementation

Scrum is not about engineering practices

ScrumMaster and ZenMaster: The joke of certification

What is Trans-Scrum?