---
title: "Test retry is on by default"
date: 2026-12-02
tags:
  - "Test Engine"
description: "A repository that never set up test retry now retries failing tests on its default branch and in merge queue runs, with the default settings."
---

Test retry used to start only once someone switched it on for the repository. It is now on by default: on a plan that includes quarantine, a repository that never configured it retries a failing test on its default branch and in the runs the merge queue checks, within the default budget (5% of how long the job's tests usually take) and limit (5 retries per test). Every attempt is still recorded, so a test rescued by a retry still shows as flaky.

- It needs the Mergify plugin 2026.11.21 or later for pytest, RSpec, Minitest, Vitest, Playwright, Jest or Mocha. With an earlier plugin, a repository retries only if someone switched test retry on.
- A repository where someone switched test retry off stays off.
- To switch it off for a repository, use the Test Retry section of Test Engine > Configuration, or `mergify tests retry off`.
- To switch it off for one job, set `MERGIFY_TEST_RETRY_ENABLE=false` in that job's environment.

See [Test retry](https://docs.mergify.com/test-engine/test-retry/).
