Cobertura is a free code coverage library for Java. Its XML report file can be imported to generate code coverage metrics for your Java project.
For more details, refer to http://cobertura.github.io/cobertura/.
Cobertura has the following options:
XML report (xml) Specify the path to the XML report generated by Cobertura.
The full command line syntax for Cobertura is:
-d "type=Cobertura,xml=[text]"