Free tool

Find the flaky tests in your test runs

Drop two or more JUnit reports from the same suite. See which tests passed in one run and failed in another, how often, and the likely cause of each failure. Your files stay in your browser.

Runs in your browserJUnit XML or CSVSame input, same result
No runs handy?
Drop your result files here
JUnit XML from Playwright, Cypress, Jest, pytest, Maven, Gradle or your CI, or a CSV of test names and statuses.
Choose files Each file is one run. Read in your browser, not uploaded.
or paste each run

Compare runs test by test

One red run doesn't tell you much. Line up several runs of the same suite and the tests that change their answer stand out. For the causes behind them, see flaky tests explained.

Collect two or more runs

Download the JUnit report from each CI run, or rerun the suite a few times on the same commit and save each report.

Match tests across runs

Tests are matched by class and name. A test that passed in one run and failed in another is flaky. One that failed every time is listed apart.

Sort the failures by cause

Each failure gets a likely cause from its message: timeout, element not found, login, network, test data or assertion.

What it finds

  • Tests that passed in one run and failed in another
  • Tests that failed and then passed on a rerun inside one run (Maven Surefire)
  • Tests that failed in every run, which are more likely real bugs or broken tests
  • Which kinds of failure show up most, so you know where to start. For CI-only failures, see flaky tests in CI/CD.

What it can't see

  • Flips on runs you didn't include. Two runs is the minimum, five or more is better.
  • Whether a code change between runs caused a failure. Compare runs of the same commit when you can.
  • The real root cause. The cause is a rule on the message, so read the trace before you fix. For Playwright, start with this guide.

FAQ

Did we miss a question?
Email us directly →

What is a flaky test?
A test that passes and fails on the same code. The usual causes are timing, shared test data, a slow or unstable environment and tests that depend on each other. Our guide to flaky tests covers each one.
How many runs do I need?
Two is the minimum, and five or more is better. The finder only compares the runs you give it, so a test that flips on a run you didn't include won't show. Runs of the same suite on the same code give the clearest answer. If the code changed between runs, a test that started failing may be a real bug, not a flake.
Which files does it read?
JUnit XML, which Playwright, Cypress, Jest, pytest, Maven, Gradle, TestNG and most CI tools can write. Drop one file per run, or one file with several <testsuites> blocks. You can also paste a CSV or a list with a test name and a status (pass, passed, ok, fail, failed, timed out, error, broken, skip, flaky) for each test, one paste per run, or one CSV with a run column. Maven Surefire reruns count too: a test that failed and then passed on a rerun in the same run is flaky.
How does it pick the likely cause?
By fixed rules on the failure message and stack trace, so the same runs always give the same result. It checks for timeouts first, then elements it couldn't find, login or access errors, network and server errors, missing test data and failed assertions. The first match wins, and anything else is Other. Treat it as a starting point and read the trace.
How is the flake rate worked out?
Flaky tests divided by the tests that ran (not skipped) at least twice, in two runs or as a retry inside one. A test that only ran once isn't counted, because there is nothing to compare it with.
What should I do with the flaky tests?
Quarantine them so they stop blocking merges, then fix the cause, starting with the ones that fail most. See how to fix flaky tests, flaky tests in CI/CD and, for Playwright suites, fixing flaky Playwright tests.
Are my test results uploaded?
No. The files are read by JavaScript in your browser and never sent to Pie or anyone else. If you unlock the downloads, we keep your work email, not your results.

Stop chasing flaky tests.

Pie runs your tests like a real user, reruns failures and tells you which ones are real.