- versions used
- SonarQube Enterprise 7.9.4 (build 35981),
- Scanner 4.5.0.2216,
- Plugin SonarCFamily 6.8.0.16475 (cpp)
-
what am I trying to achieve :
I want to integrate Unit test result from Google Test with sonarqube. -
what have I tried so far to achieve this
I some how managed to get results in junit xml format.
I am able to integrate code coverage from gcov in sonarqube format.
But not able to import xml reports from gtest
I am trying property sonar.junit.reportPaths, but this property is ignored during sonar-scanner execution.
Please find below sonar-project.properties ::::sonar.projectKey=ProjectKeyABC
sonar.projectVersion=1.0
sonar.sources=src
sonar.cfamily.build-wrapper-output=bw-outputs
sonar.sourceEncoding=UTF-8
sonar.tests=tests
sonar.junit.reportPaths=unittest_results
sonar.coverageReportPaths=gcov_sonar/sonarqube.xml