Venkat Teki
Venkat Teki

Reputation: 2773

Sonarqube code coverage metric with Jacoco

I am using jacoco to get the code coverage metrics, and using sonar qube along with it for visualizing it.

Jacoco has multiple 'sub' coverages

But if we look into sonarqube, it shows a single "Coverage" information.

Which of the above 5 coverages does sonarqube refers to?

Upvotes: 0

Views: 171

Answers (1)

Peska
Peska

Reputation: 4140

SonarQube is displaying Line Coverage. You can see details of it under Coverage Metrics. Example:

  • Coverage 36.5%
  • Lines to Cover 3,004
  • Uncovered Lines 1,909
  • Line Coverage 36.5%

You can also see Class/Project Coverage, when you change View from List to Tree or Treemap.

Upvotes: 1

Related Questions