Closed satyadev-chauhan closed 3 years ago
Got this working with https://github.com/mysugr/cococo
Instead of using this: bash xccov-to-sonarqube-generic.sh Build/Logs/Test/*.xcresult/ > sonarqube-generic-coverage.xml
Use this: cococo Build/Logs/Test/*.xcresult > sonarqube-generic-coverage.xml
Running into the same but even cococo has been deprecated. https://github.com/mysugr/cococo Does anyone have a solution ?
This repo is a sample of how to scan projects. If you have problems on your own projects please post on the SonarSource community forum, not here. See https://community.sonarsource.com
Error generic coverage report: INFO: ------------- Run sensors on project INFO: Sensor Generic Coverage Report INFO: Parsing /Users//sonarqube-generic-coverage.xml
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:58.549s
INFO: Final Memory: 63M/240M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Error during parsing of the generic coverage report '/Users//sonarqube-generic-coverage.xml'. Look at SonarQube documentation to know the expected XML format.
Description: The sonar-scanner throws parsing error for sonarqube-generic-coverage.xml when file size >2MB generated by xccov-to-sonarqube-generic.sh. The coverage reports are generated for Generic Coverage correctly as per https://docs.sonarqube.org/latest/analysis/generic-test/
The project uses swift and objective-c language. The reporting is successful when the sonarqube-generic-coverage.xml is around 2MB.
Info: SonarScanner 4.5.0.2216 Java version 8, 11, 15 Mac OS X 10.15.6 x86_64