Code Coverage for all java project showing as 0.0 %

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube: * Community Edition
  • Version 7.2.1 (build 14109)
    Code Compiled with Open JDK 11 and Maven Version 3.5.2

Could not able to see any error in logs as well, can you please help me to debug this issue or any steps to debug why code coverage is showing as 0.0% in sonarqube dashboard.


Welcome to the community!

Are you actually generating a coverage report and feeding it in to analysis?


Thank you for your reply…!

I see the code coverage generated using jacoco as shown in below image: but when we call goal sonar:sonar its saying

[INFO] 06:49:26.508 Analysis report generated in 418ms, dir size=1 MB
[INFO] 06:49:27.038 Analysis reports compressed in 529ms, zip size=711 KB
[INFO] 06:49:27.038 Analysis report generated in ****
[DEBUG] 06:49:27.039 Upload report
[DEBUG] 06:49:29.955 POST 200 ***| time=2911ms
[INFO] 06:49:29.959 Analysis report uploaded in 2920ms
[INFO] 06:49:29.961 ANALYSIS SUCCESSFUL, you can browse **
[INFO] 06:49:29.962 Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report

i just want to import the jacoco coverage report to sonarqube which is generated at: target/site/jacoco/
it would be really great if you help me to debug this case.

And coverage in sonarqube always 0.0 % after every run.


Can you post your build and analysis commands?