Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.1
-
Labels:None
-
Estimate:Hours
Description
When a project has no coverage in SonarQube, it's currently not easy to understand why by looking at the logs:
13-Feb-2020 11:43:44 [INFO] Sensor JaCoCo XML Report Importer [jacoco] 13-Feb-2020 11:43:44 [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
JacocoPlugin applies the following logic to decide which report to import:
- files specified by the "sonar.coverage.jacoco.xmlReportPaths" property if it exists
- Or "target/site/jacoco/jacoco.xml" and "build/reports/jacoco/test/jacocoTestReport.xml"
It should be possible to understand by reading the INFO logs: if JacocoPlugin has successfully imported something (and which files) or successfully imported nothing (what was looked up).