Pick your code coverage tool in Sonar 2.2
By default, Sonar embarks two tools to calculate code coverage by unit tests on java projects : Cobertura and Clover. But last week, we also released plugins for two other coverage tools : Emma and JaCoCo. Both plugins are available in the Sonar Plugin Library. So I thought it would be a good time to compare all of them and share the results with the community.
To compare results and performance of those tools I've used following projects:
And here is code coverage results:
And finally I've made three measures of time of Sonar analysis for each combination of project and tool with clean Sonar database (which means 54 builds on my Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz). For this I've used Maven 2.2.1 with Java 1.6.0_20 and Sonar 2.2.