Coverage results displayed in SonarCloud are incorrect

I have a (small) Java project, and for my package IntelllJ IDEA reports 100% coverage. However, the scan that was run after recently adding my project says that coverage of that code is 0%

  • versions used : sonarcloud.io
  • error observed: Coverage results displayed in SonarCloud are incorrect
  • steps to reproduce
    1. Run IntelllJ IDEA with Coverage for all test sin my package
    2. Run Sonar Cloud on the same branch

Results: The Sonar Cloud Test Coverage Result is 0% and the IntelllJ IDEA Test Coverage result is 100%

If anyone encounters the same issue, it is because SonarCloud does not do the coverage analysis. Rather, it uploads coverage generated by JaCoCo as part of the build.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.