Eric Wilson Eric Wilson - 1 year ago 69
Java Question

How to view HTML coverage report using Cobertura Maven plugin?

I want to generate and view a coverage report for a Java-Maven project.

I've added the following to



When I run
mvn cobertura:cobertura
it builds successfully and reports to the console that
Cobertura Report generation was successful
but I can't find the report.

If I
I find a file called
but I have no idea what to do with it.

Edit: After re-examining the docs, thanks to Andreas_D, I've added the
tag, but get the same result.

Answer Source

Have a look at the plugin's documentation, there's an example. Pretty sure that you have to add a <reporting> element to actually produce the report.