Exporting code coverage results in Cobertura format
Cobertura is a format that can be imported into a Cobertura utility.
Procedure
Results
When the result exporting is done, you can find the exported files in Cobertura format in the result location that you specified.
The exported files in Cobertura format include a
.xml
file of coverage report
and the source code that matches the report. For example, you can find a typical output folder
structure for the exported results in Cobertura format as below.Root/coverageReport.xml
/src/...
coverageReport.xml
is an xml file in Coloratura report format, which contains information about covered lines. The file name can be chosen arbitrarily, as one of the arguments for exportResult method.src
is the folder that contains source files, listings, or both.