English

How do you track flaky tests in Jira without hiding real failures?

On this page

To track flaky tests in Jira, keep one record per flaky test with an owner, a flip rate, a quarantine date and an expiry date, and link it to the requirement the test protects. The record matters more than the detection, because a quarantined test is a hole in your coverage until someone fixes it.

This guide covers telling a flake from a failure, a ticket template, a quarantine policy you can copy, and keeping quarantined tests from making a release look safer than it is.

What counts as a flaky test?

A flaky test gives different results on the same code. The simplest signal is a re-run: it fails, you run the same commit again, and it passes. Atlassian’s engineering blog describes retry detection as one of the mechanisms behind its internal Flakinator tool (published December 8, 2025). The same idea works without a tool: compare results across attempts of one CI run.

Signal Likely flake Likely real failure
Same commit, second attempt passes Yes No
Fails on every run after one change No Yes
Fails only in CI, never locally Possible Possible
Fails at random steps, different each time Yes Rarely
Fails on one browser or environment only Check the environment Possible

A flake can hide a real race condition, so record it instead of rerunning until it goes green.

Why does Jira need a record at all?

Because CI quarantines tests but does not decide who owns the fix or when a quarantine ends. Bitbucket’s documentation, for example, notes that marking a test as quarantined only adds metadata and does not change how the pipeline runs. Jira is the place for the part that needs people: an owner, a due date and a link to the requirement.

What should a flaky-test ticket contain?

Use a bug or task in the product project. This template is a suggestion, not a Jira standard.

Field Example
Summary Flaky: checkout payment test
Test Key or name of the test
Evidence Run links where it flipped, with attempt numbers
Flip rate 3 flips in the last 20 runs
Suspected cause Timing, shared data, environment, order
Owner A named person, not a team alias
Quarantined on Date
Expires on Date, normally two sprints
Requirement at risk Story key the test covers

What does a quarantine policy look like?

Copy and adjust:

  1. A test may be quarantined only if a ticket exists with an owner and an expiry date.
  2. A quarantined test still runs, but its failure does not block a merge.
  3. The expiry is reviewed in planning. At expiry, either the test is fixed, extended once with a reason, or deleted.
  4. A requirement covered only by quarantined tests is shown as untested in release decisions.
  5. A test that flakes after a fix goes back to step 1 with a higher priority.

Rule 4 is the one teams skip. Without it, quarantining makes the dashboard greener without making the product safer.

Diagram The life of a quarantined test

  1. FlipsPasses on a later attempt at the same commit
  2. TicketOwner, evidence, flip rate, expiry date
  3. QuarantineStill runs, does not block merges
  4. Expiry reviewFix, extend once with a reason, or remove
  5. Back inFixed tests block again

A requirement covered only by quarantined tests counts as untested in release decisions.

A quarantine is a hole in coverage with an owner and an end date, never a delete.

How do you find the flaky tests in the first place?

You need results per attempt. In ProbeTest’s JUnit upload, each CI run has a run reference and an attempt number, and its documentation says a test that passes on a later attempt is flagged as flaky. The CI results area then has a Flaky list for tests that flip between pass and fail or pass only on retry. How to get JUnit test results into Jira from CI covers the upload itself. If you use another setup, make sure your CI stores every attempt, because a pipeline that keeps only the last result cannot detect flakes by retry.

How do quarantined tests affect release readiness?

This is where it gets risky. Say story SHOP-12 is covered by three tests, one of them quarantined. If the quarantined test is counted as passing, the story looks covered. If it is dropped from the count, the story has two checks instead of three, and the missing one may be the one that mattered. Decide which, write it in the policy, and make the requirement view show it. For how coverage is read per requirement, see traceability matrix and test coverage in Jira.

What does a worked example look like?

This is an example, not a customer story. A checkout test fails once in a CI run on main. The second attempt passes. The team lead opens the Flaky list, sees the test has flipped three times in two weeks, quarantines it and creates the ticket above with an owner and a two-sprint expiry. The release readiness view for the next version now shows the checkout requirement without a passing check from that test. The team decides to run a manual cycle for that story before the release. Two sprints later the owner finds a shared test account and fixes it, the quarantine ends, and the ticket closes.

Doing this inside Jira with an app

ProbeTest, a test management app for Jira keeps results from CI and from manual runs in one history. According to its documentation, you can quarantine a flaky test, which keeps its history but leaves it out of coverage and readiness, or dismiss it. The details are in the reports and dashboards guide and the automation and CI guide. ProbeTest is for Jira Cloud only and is coming soon to the Atlassian Marketplace. The app does not create the flaky-test ticket for you, so the owner and expiry rules in your policy are still a team habit. To choose an approach first, read Jira test management: how to choose.

Sources

Frequently asked questions

How do I track flaky tests in Jira?

Keep one record per flaky test with the test name, how often it flips, an owner, a quarantine date and an expiry date. Link it to the requirement the test covers so a release decision can see what is not being checked.

How do I tell a flaky test from a real failure?

A flaky test passes and fails on the same code. If a test fails on every run after one change, it is a regression. If it fails once and passes on a re-run of the same commit, treat it as a flake and record it.

Should I quarantine a flaky test or fix it right away?

Quarantine it when it blocks the team, but only with an owner and an expiry date. A quarantine with no expiry becomes a permanent hole in your coverage.

Do quarantined tests count toward release readiness?

They should not count as passing. Leave a quarantined test out of the coverage figure and make the requirement it covers visible as untested until the test is fixed.