Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
douglastaquary opened this issue Sep 27, 2024 · 2 comments

Comments

@douglastaquary
Copy link

douglastaquary commented Sep 27, 2024

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 <coverage version="1"> </coverage>
The last update we have of this script is from 2019.

@joe-tingsanchali-sonarsource
Copy link
Contributor

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants