Hello Team,
We re using bazel build and Build wrapper for CPP code analysis.
Both build and test commands are passing. However the code coverage is 0.00 in sonar project.
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
We are using SonarQube enterprise edition (8.9.6)
Sonar Scanner version: 4.7.0.2747 -
what are you trying to achieve
Goal is to ensure code coverage is showing in SonarQube server -
what have you tried so far to achieve this
Following commands were used for build, test and code coverage
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory /home/ubuntu/bin/bazel --batch build --spawn_strategy=standalone --genrule_strategy=standalone …
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory /home/ubuntu/bin/bazel --batch test --spawn_strategy=standalone --genrule_strategy=standalone …
sonar-scanner -Dsonar.login=(user token)
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!