Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
I’m using…
SonarQube 9 Community edition.
Gradle
sonar scanner 4.6.2
First I’m afraid I could be rude on my word because I’m not familiar using english. Beg your pardon.
I already successfully runned SonarQube and viewing other measurements.
But only codeCoverage is always 0.
I checked jacoco report xml file exist and Sonar scanner log when sonarqube task.
like below…
[INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor JaCoCo XML Report Importer [jacoco]
[INFO] [org.sonarqube.gradle.SonarQubeTask] Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
[DEBUG] [org.sonarqube.gradle.SonarQubeTask] Reading report ‘/********/jacoco/jacoco.xml’
[INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
I spent a lot of time to find out the reason but it doesn’t made it.
Anyone who give some hint about this problem??