Slack Notifications for Test Health Changes
Mergify can now post a Slack message when a test on your default branch turns flaky or broken, or becomes healthy again.
A test that starts failing on your default branch used to show up in the dashboard and the Activity Log, which meant someone had to go and look. Now your team’s Slack channel hears about it as it happens, and can pick it up before it slows everyone’s pull requests down.
Each message shows:
- The test, linked to its details page.
- Its new health and the previous one, and why it changed: for example, it failed again after passing on another revision.
- Where it changed: the repository, branch, pipeline and job. When a commit changes the health of many tests at once, the channel gets one summary instead of a message per test: how many tests are now broken, flaky or healthy, the first ten of them, and a link to the Detection page for the rest.
To turn it on, pick Test health changed in the events of a Test Engine notification under Integrations → Slack. You can then narrow it by health: for example, set To to Broken to hear only about tests that break. A channel that follows every event does not receive these messages until you pick it, so your existing channels stay as they are.
Was this page helpful?
Thanks for your feedback!