What you’ll learn
- How to cache test results and rerun only failed tests
- How to reduce CI time by 40-60%
- Which CI providers support these optimizations
Quick Reference
| Strategy | Description |
|---|---|
| Rerun Only Failed Tests | Cache results and rerun only failed tests. Reduces CI time by 40-60%. |
The Problem
Running full test suites on every commit increases time and cost:- Long feedback loops - Full suites take 10-30+ minutes, delaying developer feedback
- High CI costs - CI minutes accumulate quickly across teams and branches
- Slow deployments - Waiting for full test runs slows release velocity
- Flaky test noise - Re-running everything amplifies flaky test impact and blocks merges
How TestDino Extends Playwright
Playwright@playwright/[email protected]+ includes native --last-failed support. TestDino adds:
- Cross-runner caching - Results persist across different CI runners
- Shard awareness - Works with parallelized test execution
- Workflow-level persistence - Cache survives job restarts
- Branch/commit tracking - Results tied to specific code changes
Related
Re-run failed tests, GitHub Actions, and status checks.GitHub Actions
Set up Playwright tests in GitHub Actions
GitHub Status Checks
Configure PR status checks
TeamCity
Integrate with TeamCity CI
Flaky Tests
Detect and fix flaky tests