Coverage Percentage Differences – IntelliJ IDEA vs SonarCloud

I would like to clarify an important observation about test coverage discrepancies when comparing results from IntelliJ IDEA and SonarCloud .

  • Intellij-TestCoverage - 73%
  • SonarQube - 35%

 

  1. Why Are Coverage Results Different in IntelliJ, Eclipse, and SonarQube?
  2. Is there official guidance on how to align SonarQube coverage with IDE-level results like Eclipse or IntelliJ?
  3. Can SonarQube be configured to include test class coverage (like IDE), or is this intentionally excluded?
  4. What is the best practice to report consistent and meaningful coverage across development tools and CI?

Thanks

0

请先登录再写评论。