Support Cobertura Code Coverage Reports

From my experience, Cobertura is one of the most widely used code coverage libraries out there. After gradle 1.6 came along with its build-in JaCoCo plugin, I have migrated some of our projects to JaCoCo, but our developers aren’t happy with JaCoCo. Especially the Jenkins plugin is far from being as good as the Cobertura one. Also, the third party Gradle-Cobertura-plugins out there don’t seem to be actively maintained, and are still not very convenient to use and error-prone.

Therefore, I think it would be a good idea to support code coverage via Cobertura.

In the Gradle 1.6 release post ( ), Hans Dockter announces code coverage through JaCoCo, saying that “JaCoCo is the only open source code coverage library for Java which is actively maintained”. However, the cobertura project page at lists recent news and the code is available at github . (Maybe I’m missing some other issue though here?)

Best regards, Mike

I definitely agree on many points.

The Cobertura gradle plugins out there are spotty at best. And Cobertura works MUCH better for Groovy than JaCoCo does currently.

Gradle guys, what do you think? Is this something that you’d want outsider contributions on? Is it in the works? Or do you not like the idea?

I’m not aware of any plans to ship a Cobertura plugin with Gradle. It’s best left to a third-party plugin.

Hi All,

I’m new to gradle and cobertura. As i have a requirement to configuring Cobertura in gradle i followed the post in: I have many subprojects in my project i used multi project build. I have the webservice as a subproject. So the cobetura task is failing at the webservice project saying “cannot find symbol”. But able to build the entire project successfully. Even the reports are not generating. Can any one help please.