Insights~6 min read
Should You Eliminate Flaky Tests or Keep Some Flakiness?
Should you eliminate all flaky tests or is some flakiness useful? Learn to separate test noise from intermittent real bugs, and what evidence settles it.
TL;DR
Not every flaky test is noise. Flakiness caused by the test itself should be removed, but flakiness caused by the product, such as a race condition, is a real bug that appears intermittently. The fix is to classify each flake with evidence before deleting, retrying or quarantining it.
Key takeaways
Two causes: A flaky result comes either from the test (timing, shared state, brittle selectors) or from the product (races, intermittent faults). They need opposite responses.
Retries hide signal: Automatically rerunning until green turns a possible real defect into a pass nobody looks at.
Classify before you act: Compare failing and passing runs and ask what differed. Evidence decides whether to fix the test or file a bug.
Reduce test-side noise: Tests that depend on structure that was never meant to be stable create flakiness that tells you nothing.
Evidence per finding: A recording and step-by-step reproduction for each finding give you something to judge an intermittent failure from.
Should You Eliminate All Flaky Tests, or Is Some Flakiness Useful?
You should eliminate flakiness that comes from the test itself, but not by treating every intermittent failure as noise. When a test fails sometimes because the product behaves differently from run to run, that flakiness is a real defect showing up intermittently, and it is worth keeping visible.
The useful question is not "how do we reach zero flaky tests?" It is "for each flaky result, is the test unreliable or is the product?" Those two answers lead to opposite actions, and a policy that treats them the same can be wrong.
What Does Flakiness Look Like Week to Week?
A flaky test is one that passes and fails against the same code. In practice it looks like a build that goes red, gets rerun, and goes green with no change in between. Someone shrugs, someone else adds a retry, and the incident leaves no trace.
Over a few weeks the pattern hardens into habit. Engineers stop trusting red builds. The QA lead sees a growing list of tests marked "known flaky" and a quiet rule that a second failure is the only one worth reading.
That habit is the real cost. Once a team learns to ignore a failure, it ignores the rare one that was a genuine bug as well.
Why Do Tests Flake in the First Place?
Intermittent results have a small number of mechanical causes, and they fall into two families. Reasoning from how software works is enough to tell them apart.
Test-side flakiness
These are failures where the application did nothing wrong. Typical sources:
- Timing assumptions: the test checks a screen before it has finished loading, or waits a fixed interval that is sometimes too short.
- Shared state: tests depend on data or ordering left behind by earlier tests, so results change with execution order.
- Brittle selectors: the test locates elements by structure that was never meant to be stable, so a harmless layout change breaks it.
- Environment variance: a slow device, a busy machine or a missing fixture changes the outcome.
This family is noise about the product. Once you have confirmed a failure is of this kind, it tells you about the test, not the product, and removing it makes the suite more honest.
Product-side flakiness
These are failures where the test did its job and the application behaved differently across runs. A race between two requests, a cache that is sometimes stale, or an intermittent backend fault will all produce a test that passes most times and fails occasionally.
This family is signal. The variation is the defect. A user may hit the same condition in production, possibly at a worse moment than a test run.
What Do Teams Usually Try, and Where Does It Run Out?
The common responses each solve part of the problem and create a new one.
- Automatic retries: they keep the pipeline moving, but they convert an intermittent failure into a pass. If nobody reviews which tests needed a retry, a product-side race is quietly absorbed.
- Quarantine: moving a flaky test out of the blocking path protects the build. It also removes the test from view, and a quarantined test that was catching a real race stops catching it.
- Deleting the test: this ends the noise and the signal together. It is the right call for a test that only ever failed for its own reasons, and the wrong call when you never found out which it was.
- Doing nothing: teams often fall into this. Trust erodes, and red builds become background.
What these share is that the decision is made without knowing the cause. Retry, quarantine and delete are all reasonable once you have classified the flake. Before that, they are guesses.
How Do You Tell Noise From a Real Intermittent Bug?
Compare a failing run with a passing one and ask what differed. If the app received the same valid input and responded differently, suspect the product. If the difference lies in the test's own timing, data or locators, suspect the test.
A few questions make this concrete:
- Does the failure reproduce when the test runs alone, in a clean state?
- Does the failing run show the app in an unexpected state, rather than the test looking in the wrong place?
- Is the error something a real user could plausibly see?
This only works if you have evidence from the failing run. A bare "assertion failed" line cannot tell you which family you are in, which is one reason flakes can get labelled noise by default. The cheaper the evidence is to read, the more flakes get classified instead of ignored.
What Does a Different Approach Look Like?
The approach is to remove the test-side causes you can remove, and to make failures arrive with evidence. TaloTrace addresses both halves of that.
On the first half, TaloTrace navigates by looking at the screen, not by brittle element IDs, so it keeps working when the UI changes. You write no test scripts. That removes dependence on element IDs, one common source of test-side noise. It does not address every cause of an intermittent result.
On the second half, a screen recording is captured for every run, and each finding carries the time window inside that recording where the defect shows. TaloTrace also gives its reasoning and step-by-step reproduction in an Evidence panel. When something looks intermittent, you have a recording and steps to compare, not only a log line.
What Makes TaloTrace Different for Triaging Intermittent Failures?
Three live behaviours matter most when you are deciding whether a failure is worth keeping.
- Independent review: TaloTrace separates finding a bug from reporting it. It drives your app and records what looks wrong, then independently verifies each finding before it reaches you, so nothing you see is the raw, unchecked output of the step that produced it.
- Proven completion: a goal is marked done only when a machine-checkable predicate proves the outcome, false before the action and true after. A scan that produces no independently proven goal fails rather than reporting an unverified journey as a pass.
- Deduplication: repeated observations of the same defect collapse into a single issue within a run. Across runs, a candidate matching an issue TaloTrace already tracks is routed to that issue instead of surfacing as new.
Findings are rated for severity on a five-level scale, and a per-project rubric lets TaloTrace follow your own triage guidance when rating them. You can see what a finding contains on the how it works page.
How Should You Set a Flakiness Policy?
Write the policy around the cause, not around the symptom. A workable version has three rules:
- Every flaky result gets a classification (test-side or product-side) before it is retried, quarantined or deleted.
- Test-side flakes are fixed or removed, because they carry no information.
- Product-side flakes are filed as bugs, with the evidence from the failing run attached.
If you keep retries, record which tests needed one, and review that list on a schedule. The aim is not zero variation. It is that every variation you keep is one you chose to keep, for a reason you can state.
How Do You Get Started With TaloTrace?
If you want failures that arrive with a recording, a time window and step-by-step reproduction instead of a bare red build, you can see how TaloTrace handles your own app. Access is by application: you get in touch, and you are granted access or can book a demo.
Start with the flows where intermittent failures have cost you the most trust.
Frequently asked questions
Should you eliminate all flaky tests?
No. Flakiness caused by the test itself, such as timing assumptions or shared state, should be fixed or removed. Flakiness caused by the product, such as a race condition, is a real defect that shows up intermittently, so eliminating it by deleting or endlessly retrying the test throws away a genuine signal.
How do you tell a flaky test from an intermittent real bug?
Compare a failing run with a passing one and look at what differed: timing, data, order of operations, or the state of the app. If the difference is in the test's own assumptions, the test is at fault. If the app behaved differently given the same valid input, you are likely looking at a product defect.
Is automatically retrying failed tests a good idea?
Retries can keep a pipeline moving, but they also convert an intermittent failure into a pass that nobody reviews. If you retry, keep a record of which tests needed it, so the pattern can be investigated rather than forgotten.
How does TaloTrace help with intermittent failures?
TaloTrace captures a screen recording for every run, and each finding carries the time window in that recording where the defect shows, plus step-by-step reproduction. TaloTrace also independently verifies each finding before it reaches you, so you triage evidence instead of raw output.
Does TaloTrace remove test maintenance or guarantee tests never break?
TaloTrace does not guarantee tests never break. It navigates by looking at the screen rather than brittle element IDs, so it keeps working when the UI changes, and you write no test scripts. That addresses one source of test-side flakiness, not every cause of an intermittent result.
How does TaloTrace support judging whether a failure is flaky?
Each finding comes with a recording, TaloTrace's reasoning and step-by-step reproduction, so you can make that judgement from evidence.