-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
xccov-to-sonarqube-generic.sh does not support XCode 11 #63
Comments
@agigleux any news on this? |
Same for me :( |
Just wanted to surface this here, that we are disabling sonar and looking at alternative solutions. 😞 |
Sorry for the radio silence, you should definitely post your feedback on https://community.sonarsource.com/ where SonarSourcers are there every day. The xccov-to-sonarqube-generic.sh is just an example of script to transform a *.xccovarchive into the Generic Coverage format supported by SonarQube. I mean this .sh script is not supported by SonarSource itself. Can you post a Change Request on https://community.sonarsource.com/c/suggestions/features to officially request a solution to support Xcode 11 coverage format? In the meantime, keep in mind that if the .xcresult file format is a JSON/XML format, it should not be complicated for one of you to transform it into the format expected by SonarQube: https://docs.sonarqube.org/latest/analysis/generic-test/ |
|
I made this fix, but now I got another error, do you have any idea about this? Thanks!
|
@diegommlima I did not encounter this error yet. Do you have a github repo with the project somewhere or any other way I could reproduce this error? |
I get a similar error like @diegommlima: Edit: I did some adjustments on our build machines. Coverage is back to normal, but conversion still takes >1hour (~10 minutes before). Alas, I cannot supply a sample project at the moment. |
@diegommlima Even I am getting same error! were you able to resolve the error ? |
Unfortunately not yet.. :( and I can't supply a sample project at the moment too. |
I ran all my tests and got the latest .xcresult directory from DerivedData to generate the .xml file Works on Xcode 11.1
|
@kuriishu27: what performance did you experience? (size of .xcresult bundle and time needed for the conversion would be great, amount of tests and source files even better) |
Yes, @kuriishu27 is correct after switching using the new Test Plans in Xcode 11 only the the test executed with the Xcode 11.1 command line tools version, not with newer ones. If I don't use the new Test Plans then I can still use the lates command line tools (11.3.1 at the moment) I'll create a ticket for this. |
Hi, |
With XCode 11 the format of result bundles changed. Instead of
*.xccovarchive
now xcodebuild produces.xcresult
(see release notes. and Testing in Xcode).Using the current version of xccov-to-sonarqube-generic.sh on an xcresult-bundle results in following error:
The text was updated successfully, but these errors were encountered: