Example code coverage setup for Swift and GitHub Actions

  • ALM / CI: GitHub+Actions
  • Organization configured cloud integration
  • Swift

We have a project with a working SonarCloud integration. I would like to improve it by adding code coverage. Are there examples available for how to setup code coverage? Also, I don’t have access to the configuration of SonarCloud in my GitHub project. Is that necessary to get things done in the right order?


Welcome to the community!

Are you running analysis in your CI, or are you using automatic analysis? If the latter, you’ll have to start by deactivating it. Then you’ll need to configure analysis in your CI, and add the test coverage in that configuration.


1 Like

Thank you for those pointers!

1 Like