The gcovr command currently generates two different types of output:
- Text Summary
For each file that generates gcov statistics, gcovr will summarize the number of lines covered, the percentage of coverage and enumerate the lines that are not covered. - Cobertura XML
An XML summary of the coverage statistics can be generated in a format that is consistent with Cobertura.
See the gcovr Trac page for further details about this tool. The gcovr command is currently bundled with the FAST Python package, which you can download from the FAST Trac site. However, gcovr is a stand-alone Python script. Thus, it is also convenient to download the latest development version here.
Great tip, thanks a lot!
ReplyDelete