Skip to content

Find tests that keep failing and passing on retry

A green build can hide a flaky test. For example, checkout may time out waiting for a receipt on the first attempt and pass on the second. TestPerch lets you see both attempts.

  1. Open Tests → Flaky in your project. Detected shows when TestPerch first flagged the issue. Last issue helps you find tests that have been flaky recently.
  2. Select a test and open a result from its Run history around the time of the last issue.
  3. If Playwright retried the test during that run, compare the failed and passing Attempt tabs. If it passed when someone reran the CI build, compare the two runs in its history. Look for the step where the results diverge. Find out why a test failed
  4. After you fix the test and verify it passes, go back to Tests → Flaky and choose Mark resolved. TestPerch also resolves the issue after ten consecutive clean passes. A later flaky result can reopen it.

If the test is disrupting other people’s builds while you investigate, you can quarantine it.