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 format has the following options:
XML report ( xml ) Specify the path to the XML report generated by Cobertura (or by a tool able to produce data in this format).
xml
The full command line syntax for Cobertura format is:
-d "type=Cobertura,xml=[text]"