---
title: "Re-run only failed Playwright tests in CI"
description: "Re-running only failed Playwright tests in CI is one of the most popular requests."
canonical: "https://currents.dev/changelog/re-run-only-failed-playwright-tests-in-ci"
updated: "2024-10-04"
---

# Re-run only failed Playwright tests in CI

2024-10-04, New (tracks: reporters)

Re-running only failed Playwright tests in CI is one of the most popular requests.

---


Re-running only failed Playwright tests in CI is one of the most popular requests.

Starting from version [1.44](https://playwright.dev/docs/release-notes?ref=playwrightsolutions.com#version-144) Playwright supports [running only the failed test from the last run](https://playwrightsolutions.com/how-to-run-failures-only-from-the-last-playwright-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](https://docs.currents.dev/guides/parallelization-guide/pw-parallelization/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](https://docs.currents.dev/guides/re-run-only-failed-tests).

