Template for a good new topic, formatted with Markdown:
ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
Scanner command used when applicable (private details masked)
Languages of the repository
Only if the SonarCloud project is public, the URL
And if you need help with pull request decoration, then the URL to the PR too
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
Steps to reproduce
Hello all,
I’m working on an iOS project using Sonarcloud of course and Github actions. I created a new iOS project with a single struct class and associated tests to achieve a greater than 0.0% test coverage. Here is the Xcode test coverage from the local environment,
I have not been able to register any test coverage for the test coverage quality gate. I used the same setup as specified in this post SonarCloud - Swift code quality scan through GitHub actions with no change. An example of how to run an iOS project with Github actions and have it analyzed by Sonarcloud would be much appreciated.
I also saw Swift is available for automatic analysis as per, Automatic Analysis | SonarCloud Docs, however when I went to change the settings in the project I did not see an automatic analysis option. Am I just missing the location to switch to automatic analysis?
Ok. That helps. As far as the docs for automatic analysis, I don’t see an option to force it as per the image below. Is it just me interpreting the documentation to literally, or is the ability to force the automatic analysis not available? Thank you very much for the time spent on this thread.
Oh thanks Ann. Test coverage is the priority and Automatic Analysis was simply something I wanted to try to experiment and possibly eliminate a variable. Happy to try a different method and a little more direction before I head off into the darkness (so to speak) is much appreciated.