Re-run Only Failed Tests
A guide on rerunning only failed Playwright tests in CI
playwright test --last-failed
Last updated
Was this helpful?
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
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:
Sharded runs — fixed shard count and native Playwright --shard parallelism
Last updated
Was this helpful?
Was this helpful?