SonarSource / sonar-scanning-examples

Shows how to use the Scanners
GNU Lesser General Public License v3.0
891 stars 2.2k forks source link

Script xccov-to-sonarqube-generic to convert xcresults to sonar pattern stopped working #193

Open douglastaquary opened 1 week ago

douglastaquary commented 1 week ago

The script xccov-to-sonarqube-generic.sh that converts the results of xcode unit and coverage tests to sonar format no longer works! It runs but Coverage.xml is empty.

Conversion result: `xml

` The last update we have of this script is from 2019.

joe-tingsanchali-sonarsource commented 4 days ago

Hi @douglastaquary , sorry for the trouble. Let me see if we can update it or at least refer this tool to our dev team for correction.

Can you provide a sample project showing this error? What Xcode and SonarQube version are you using? Once I can reproduce your issue, this can help speed up the resolution.

For the future, if you have an immediate concern (like this issue you opened), it is best to open a thread on Sonar Community, which is where you will most likely get a better response, but let me see if I can help you here.

douglastaquary commented 4 days ago

Hi @joe-tingsanchali-sonarsource, the project we are working on is private and I am not allowed to show it. To reproduce the issue, simply create an iOS project, create a test pattern, and run. Then after xcode creates the .xcresults file, run the script passing through the file path. It will return empty content. We are using xcdode 15.2, we tested it on 15.4 and 16. The sonar version we are using is enterprise edition v9.9.6.