Condition Coverage

How does the overall coverage is calculated? Is it the summarised coverage of line coverage and condition coverage? If the condition coverage is increased, would it increase the overall coverage too?

Hey there.

As Sonar defines it, coverage is a a combination of line coverage and condition coverage (when it’s available) – and when condition coverage increases, you can expect overall coverage to increase as well. Learn more about these metric definitions here.