How to import Gcov report into sonar

Hi Team,

we are using Sonarqube Community Edition 7.9.1 and we plan to import report generated by gcov and lcov , can you please advise is this possible in the community edition ?

Thanks & Regards,
Manju NS

Hi @Manjunatha_NS,

In community edition there is no support for gcov format, only for lcov with Javascript/Typescript format, see https://docs.sonarqube.org/latest/analysis/coverage/.

Or, you can use the generic coverage format: https://docs.sonarqube.org/latest/analysis/generic-test/.

Hi Massimo,

We have json or xml format output generated by lcov, can we upload/import these reports into sonar , if yes can you please advise how to do this (steps to upload into sonar)

Thanks & Regards,

Manju NS

Hi @Manjunatha_NS,

I shared the documentation links, just follow our documentation.

Hi Massimo,

am very new to sonar, can you please share with example

we have xml report under /home/gcov/report.xml directory on the centOS machine, can you please provide example commands to run

thank,
Manju NS

Hi @Manjunatha_NS,

please take the time to read the documentation :pray:. BTW, gov format is not xml.