- Developer Edition
- v10.6 (92116)
- Docker
- trying detect code caverage
- local spm (swift package manager)
- Xcode ver. 15.4
- swift 5.9
sonar-scanner
-Dsonar.projectKey=***
-Dsonar.sources=.
-Dsonar.host.url=http://localhost:9000
-Dsonar.token=***
The scanner operates smoothly and locates all files, yet the code coverage still remains at zero
What do I have to do so that this is analyzed in the xcode project and in my local spm?
Hi @doctor-xray,
I hope this little documentation will help you Test-coverage #swift-xcode-13-3+
Thank you for your feedback. Unfortunately, the documentation is very sparse and therefore of no help. If I understand correctly, a script must also be executed?
1 Like
Hi @doctor-xray,
You should transform de courage file product bye XCode to a format supportés by Sonarqube.
Then you configure the Generic coverage file path in thé sonar-project.properties.
Ann write a Coverage guide, you may foind more information.