Template for a good bug report, formatted with Markdown:
- versions used (SonarQube, Scanner, Plugin, and any relevant extension)
Apache Maven 3.5.4
Java version: 1.8.0_144
Sonar Version 8.4.1
Jacoco maven plugin 0.8.5
Jacoco sonar plugin 22.214.171.1248
- error observed (wrap logs/code around triple quote ``` for proper formatting)
The coverage is displayed as 0% in sonar.
- steps to reproduce
I build a eclipse application with tycho. It’s a multi module application.
I have unit tests on specific modules (ask by tycho)
I have a coverage report module with a xml report generated and not empty and a html report with the good value
Sonar parse it:
INFO] Sensor JaCoCo XML Report Importer [jacoco]
[INFO] Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
[INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=70ms
I check in debug mode and the report is the good one.
So my conclusion is it’s due to inclusions/exclusions. but i put empty element in my parent pom and nothing is change.
<sonar.inclusions> **/* </sonar.inclusions> <sonar.exclusions> </sonar.exclusions> <!-- Code coverage by unit tests --> <sonar.coverage.exclusions> </sonar.coverage.exclusions>