Condition Coverage for Swift using xccov-to-sonarqube-generic / slather

Hi,

Is there any way to get condition coverage (branch coverage) for Swift using a report generated with xccov-to-sonarqube-generic or Slather?

When I check on our SonarCloud, the condition coverage is not showing up. Both “Conditions to cover” and “Uncovered conditions” always show 0.

We need this condition coverage as our new metric.

Could you please help with this?
Thank you.

Hey there.

As far as I can tell, Apple’s own tooling (xccov) only produces line coverage data, not branch/condition coverage. I think you might be out of luck.