JaCoCo XML Output
The default output format for gcovr
is to generate a tabular
summary in plain text. The gcovr
command can also generate a
JaCoCo XML output using the --jacoco
and --jacoco-pretty
options:
gcovr --jacoco jacoco.xml
This XML format is described in the JaCoCo XML DTD.
The --jacoco
option generates a denser XML output, and the
--jacoco-pretty
option generates an indented
XML output that is easier to read. Note that the XML output contains more
information than the tabular summary. The tabular summary shows the percentage
of covered lines, while the XML output includes branch statistics and the number
of times that each line was covered. Consequently, XML output can be
used to support performance optimization in the same manner that
gcov
does.
Added in version 7.0: The --jacoco
and --jacoco-pretty
.