Definition

Test quarantine

What does it mean to quarantine a flaky test?

Test quarantine temporarily removes an unreliable check from a release decision while the team investigates it. The failure remains visible. An owner, a repair ticket, a review date and a condition for restoring the check keep the resulting gap in coverage explicit.

What belongs in the quarantine record?

Keep the result of the first attempt, what happened on retry, and the conditions where the failure occurred. Record the behaviour the suite can no longer vouch for. Intermittent failures can expose a real product timing issue, so investigate the application as well as the test setup.

Worked example

A receipt occasionally appears late

A receipt check intermittently fails on a busy runner. While it is quarantined, continue collecting traces. If they show the receipt sometimes disappears even after the order is complete, open a product defect. Restore the check after the underlying issue and its repeatability have been verified.

Try it on your pull request

Choose a change in your repository and tell Cue April what should happen. Review the proposed checks before they run.

Try Cue April on your repository