Sonarqube coverage report is different from the Jacoco report imported to Sonarqube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    A) Enterprise Edition Version 9.9 (build 65466),
  • how is SonarQube deployed: zip, Docker, Helm
    A) Zip
  • what are you trying to achieve
    A) jacoco report into the sonarqube
  • what have you tried so far to achieve this
    As we are importing the jacoco report into the sonarqube

I expect both the report should be same and provide the same Coverage, From the screenshot you can see that Jacoco is reporting 73% coverage but sonarqube reporting 50% for same class which is a quite difference.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

Welcome to the community!

I think the screenshot got lost in the shuffle.

Are SonarQube and JaCoCo giving different coverage values for the same file?

 
Ann