-
Notifications
You must be signed in to change notification settings - Fork 363
Coverage tracers
Waleri Enns edited this page May 5, 2014
·
18 revisions
- Make sure to compile and link with the
--coverage
flag. Disable optimizations and switch on debugging. - Execute your application / your tests. This will generate .gcda-files.
- Collect the coverage information and generate the report using gcovr:
gcovr -x -r . > report.xml
Create the XML coverage report with:
covxml -f UTCoverage.cov -o bullseyecoverage-result-0.xml
To merge two coverage files (e.g. to obtain the overall coverage):
covmerge -c ITCoverage.cov UTCoverage.cov -f ALLCOVERAGE.cov
TODO @guwirth