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.
JUnit XML from Playwright, Cypress, Jest, pytest, Maven, Gradle or your CI, or a CSV of test names and statuses.
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 →
More free tools
See all free toolsJUnit Report Viewer
Open a JUnit XML report in your browser with failures first, stack traces and the slowest tests, then download it as HTML.
Open the toolTest Schedule Builder
Get the cron expression and CI config for every other week, the first Monday of the month and other schedules cron can't express.
Open the toolTest Case Converter
Turn a TestRail, Xray, Zephyr Scale, Azure DevOps or spreadsheet export into plain-English tests, and plain-English tests back into importable test cases.
Open the toolGet New Free Tools Every Month
We're building more tools for QA teams and developers. Get about one email a month with the new tools and what's new in Pie.
Stop chasing flaky tests.
Pie runs your tests like a real user, reruns failures and tells you which ones are real.