Coverage Showing zero for Swift

sonarqube
scanner

(Chandu) #1

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


(Andrei Epure) #2

Hello

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!
Andrei