Coveralls offers several different types of coverage-related notifications:
There are 4 types of notifications you can receive from Coveralls:
Repo Settings—with URL form:
https://coveralls.io/{GIT_SERVICE}/{ORG}/{REPO}/settings
Example: https://coveralls.io/github/coverallsapp/coveralls-demo-ruby/settings
Follow these steps to enable Pull Request Comments:
Enable LEAVE COMMENTS? and choose FORMAT:
* Coveralls checks for new invitations every 5 min. If your invitation hasn’t been accepted within 10-15 min, shoot us an email and we’ll accept manually.
If giving the Coveralls Bot write access to your repo is a non-starter for your organization, here’s how to limit its access to read-only, for now*:
* In Spring 2023 we will introduce a new Github integration based on a Github App, which provides more granular, more secure access to your org resources, and will not require an external bot to leave PR comments.
** This method works for most users. If it doesn’t appear to be working for you, shoot us an email.
Create a PR, wait a bit, then make sure you see a PR comment at Github:
* If something looks wrong, check Common Issues & Troubleshooting—or shoot us an email.
Repo Settings—with URL form:
https://coveralls.io/{GIT_SERVICE}/{ORG}/{REPO}/settings
Example: https://coveralls.io/github/coverallsapp/coveralls-demo-ruby/settings
Follow these steps to enable Status Updates:
Enable USE STATUS API? and, if desired, set COVERAGE THRESHOLD FOR FAILURE* and COVERAGE DECREASE THRESHOLD FOR FAILURE*:
Coveralls will now send status updates to Github for each commit.
* If you set failure thresholds, Coveralls will convert the status into a check and report “failed” if the coverage is below the threshold, or if the coverage decreases by more than the threshold.
Push a new commit to CI, wait a bit, then make sure you see the status updates in the Github UI, and that they pass/fail accordingly:
* If something looks wrong, check Common Issues & Troubleshooting—or shoot us an email.
Repo Settings > Notifications—with URL form:
https://coveralls.io/{GIT_SERVICE}/{ORG}/{REPO}/notifications
Example: https://coveralls.io/github/coverallsapp/coveralls-demo-ruby/notifications
We currently support notifications via:
Just choose the service you want to use and enter the required information.
Examples:
Enter the email address you want to receive the notifications. Optionally, make the notifications conditional based on coverage level or decrease.
* You can also enter a comma-separated list of email addresses.
Enter the Slack webhook URL. Instructions on creating a Slack webhook can be found here.
Enter the URL you want to receive your JSON-format message.
Tip: requestb.in is a great service for testing this until you dial it in.
Badges are the classic way to broadcast the coverage of your project. They’re easy to add to your README and they’re a great way to show off your project’s commitment to quality.
Repo Page and Repo Settings—with URL forms:
https://coveralls.io/{GIT_SERVICE}/{ORG}/{REPO}
https://coveralls.io/{GIT_SERVICE}/{ORG}/{REPO}/settings
Example: https://coveralls.io/github/coverallsapp/coveralls-demo-ruby
Example: https://coveralls.io/github/coverallsapp/coveralls-demo-ruby/settings
Just copy the snippet you need, and paste it where you want it:
It will show up like this and link back to your project at Coveralls:
Any problems, questions or comments about this doc? Let us know.