Hello, I am having problems with sonar-runner to present C++ code coverage results in SonarQube. I followed the steps to build with the build-wrapper and I used gcovr with --sonarqube to produce the coverage results. The coverage results are generated, because a file coverage.xml is generated with appropriate data (line numbers, etc).
The problem I am having is that the results, for a pull-request, are not properly uploaded to sonarqube. Sonar-runner is completing successfully and does sent an update to sonarqube, but no code coverage is visible. Also no files can be browsed and no code smells are found (see attachments). I double checked ofcourse that I did not exclude directories.
I was able to update the coverage results to the “master” branch, however for the pull-request there is no information, except for the last analysis time.
Can it be that sonarqube does not work if the “to be merged to” branch is still empty?
- Sonar Scanner 18.104.22.1683,
- SonarQube 22.214.171.124455
- Build Wrapper 6.4 (linux-x86)
- CMake 3.10.2
- Gcovr 4.2