Skip to content

How test success rate is calculated

Success rate answers “How often did this test produce the outcome Playwright expected?” TestPerch divides the number of attempts that matched expectations by the number of counted attempts, using up to the most recent 100 attempts for that test in the relevant group.

Attempt outcome Counts toward the rate? Counts as a success?
Passed or failed Yes When the outcome matches the Playwright expected status. An expected failure counts as a success. An unexpected pass counts against the rate.
Timed out or interrupted Yes No
Skipped, still running, or unreported No No

A retry is a separate attempt. Suppose a test expected to pass has eight passes, then a failure, then a passing retry. The run can finish green while the test’s rate is 9 out of 10, or 90%. A test excluded by quarantine adds no attempt to either side of the calculation.

The Combined rate pools attempts from CI environments marked Include in combined success rate in project settings. An environment with more attempts can contribute more of the 100. Local runs, unmapped CI runs, and environments you left out contribute nothing to Combined. Mapped environments and local runs have their own series, so you can compare them on a test’s detail page. Configure environment mapping

In Tests, hover over a success rate to see the actual counts and the UTC cutoff. A 100% rate based on two attempts is different evidence from 100 successes in 100 attempts.

Open the test’s Success rate trend to compare the rolling rates on up to 30 active days per series. The calculation uses completed UTC days, so a run from today can appear in Runs before it affects the percentage. Pending means the calculation is still being prepared. A series with no counted attempts has no percentage.