Coverage Showing zero for Swift

Sonar is not showing up Coverage %, showing all lines uncovered. Using xcode 9.2, file for sonar.swift.coverage.reportpath, facing this issue after upgrade from 5.6 to 6.7.

1 Like


Apologies for the late reply.

Are you following the steps on the Swift Coverage Results Import page to generate your report?

Could you scan the project in verbose mode (adding the -Dsonar.verbose=true parameter) and share the logs, to see if SonarQube is processing the coverage file?

Have you checked the coverage FAQ section on this forum?

Does it work with Xcode 9.3+?

Thank you!