For the complete documentation index, see llms.txt. This page is also available as Markdown.

Re-run Only Failed Tests

A guide on rerunning only failed Playwright tests in CI

Starting from version 1.44 Playwright supports running only the failed test from the last run using --last-failed CLI flag. For example:

playwright test --last-failed
Rerunning Failed Only Playwright Tests

While this feature works well for local environments, using it in CI with Playwright shards or Currents Orchestration is not straightforward.

We have created a set of tools that simplify rerunning only the failed Playwright tests in CI, including sharded parallel CI runs and runs created by Currents Orchestration.

Follow the guide that matches how tests are run in CI:

Last updated

Was this helpful?