...
The C++ Plugin parses xunit complaint format compliant format using the sonar.cxx.xunit.reportPath. To use other formats, first they need to be converted using the property sonar.cxx.xunit.xsltURL
...
Cobertura and Bullseye (http://www.bullseye.com/) XML formats are supported for > from 0.2 versionsversion. Previous versions support only Cobertura, and sonar.cxx.gcovr.reportPath needed needs to be set.
Gcov / gcovr
- 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:
| Code Block |
|---|
gcovr -x -r . > report.xml |
Bullseye
...
- Create xml coverage report
...

