8bitzz / blogs

0 stars 0 forks source link

Setup Coveralls for iOS project on CircleCI with Slather #32

Open 8bitzz opened 2 years ago

8bitzz commented 2 years ago

Environment

Enable code coverage for a Xcode project

Use Slather to hook code coverage into CI

1. Setup Slather

If you use a project in Xcode, RUN:

$ slather coverage -s --scheme YourXcodeSchemeName path/to/project.xcodeproj

OR if you use a workspace in Xcode, RUN:

$ slather coverage -s --scheme YourXcodeSchemeName --workspace path/to/workspace.xcworkspace path/to/project.xcodeproj

2. Configuration for CircleCI

With CircleCI and Coveralls are set, as soon as you push new commits or new pull requests, it will create new CI builds

That's all for this blog. Happy coding :]