October 4th, 2024
New
Re-running only failed Playwright tests in CI is one of the most popular requests.
Starting from version 1.44 Playwright supports running only the failed test from the last run using CLI flag --last-failed
. However, simply adding the flag to a CI command isn’t sufficient when running the tests in parallel using shards or Playwright Orchestration. 😕
Setting up re-runs requires maintaining non-trivial configuration and custom scripts 👎.
That's why we have created a set of tools that unlock re-running only the failed Playwright tests in the most popular CI providers - GitHub Actions and GitLab CI/CD 👍.
🔄 Check out our guide and examples.