Uploading Cobertura codecoverage xml file to SonarQube


Iam using SonarQube 7.4.0 for static analysis and we also use SquishCoCo for C/C++ code coverage analysis. So i have Cobertura.xml with codecoverage results in it. How do i upload this xml to SonarQube as part of uploading the static analysis results?

Is there any property similar to sonar.cfamily.gcov.reports.Path?


Welcome to the community!

We don’t support Cobertura-style reports for C or C++. However, the generic test data format works for all languages. Convert your reports to that and you should be good.

Also, I need to mention that the current version is 8.0 and the current LTS is 7.9.1. You should upgrade to one of them at your earliest convenience.


Thanks for the reply. I will try to convert them to generic format. I will plan to update SonarQUbe sometime during next week.

Thanks again!