JaCoCo coverage is 0%

Problems you have

  • Your JaCoCo coverage is at 0%
  • Your coverage dropped after an upgrade or without explanations

Check the following

  1. Is your report generated by JaCoCo prior to the analysis?
  2. Is it in XML format, not binary?
  3. Is the report updated at each build and contains valid files information? Especially file paths.
  4. Are you using the sonar.coverage.jacoco.xmlReportPaths parameter?
  5. Do you pass the report by its right path?
  6. Turn on the analysis debug mode and check what says the Sensor JaCoCo XML Report Importer [jacoco] sensor, it will likely help.

If you were not able to solve your issue, please use the complete ​JaCoCo import troubleshooting on SonarQube guide.

3 Likes