Make the test suite fast
Cut test runtime under repeatable conditions without weakening coverage, assertions, isolation, or behavior.
Use this when
Use this when slow tests are delaying local feedback or continuous integration and the project has stable commands for measuring runtime and coverage.
How it runs
- Record the full-suite runtime, coverage, environment, worker settings, and repeatable timing method.
- Profile the suite to find expensive setup, redundant work, poor isolation, unnecessary integration paths, or safe parallelization opportunities.
- Make one optimization at a time, then rerun the full suite and compare timing, coverage, and behavior.
- Stop at the agreed runtime target or diminishing-returns rule with all original checks still passing.
Done when
✓ The suite is faster with no coverage or behavior regression. Repeatable timing, the full passing suite, and the original coverage report prove the result.
Why it works
A fixed baseline prevents speed work from quietly trading away coverage or correctness. Profiling directs effort toward measured bottlenecks instead of speculative rewrites.
Implementation note
Define a runtime target or diminishing-returns rule before starting. Faster tests are not an improvement if they become flaky, order-dependent, or less representative.
More testing loops
Watch tests while you work
A passive watchdog loop that reruns your test suite every 15 minutes and surfaces failing tests with their error output.
Kill flaky tests
Run your test suite repeatedly, collect every intermittent failure, and fix or quarantine flaky tests until you get five consecutive green runs.
Make all tests pass
Implement remaining code and run tests repeatedly until the full suite passes.