Code Monkeyism

Programming is hard by Stephan Schmidt

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?

About the author: Stephan Schmidt is currently a team manager at ImmobilienScout24 in Berlin. Stephan has been working as a head of development and CTO. He has used a lot of different technologies in the last 20 years including Java, Rails and Python. Stephans main field of interest is maintainablity and productivity in software development. Want to know more? All views are only his own.

If you did like this article but you don't want to subscribe to new articles with your reader, you can follow me on Twitter or subscribe to new posts with your email:

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