E2E Until Green
Run end-to-end tests, fix UI and integration failures, and loop until the E2E suite passes.
起動プロンプト
Start the "E2E Until Green" loop.
Goal: E2E suite passes
Max iterations: 10
Between iterations run: npm run test:e2e
Exit when: E2E command exits 0
Step 1: Run E2E tests. Fix the first failing spec, then repeat.
Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.基本情報
手順
- 1
Run E2E
Run the project's E2E test command and capture failures.
npm run test:e2e - 2
Fix failures
Fix the smallest root cause for failing E2E specs. Prefer stable selectors and realistic waits.
- 3
Re-run E2E
Re-run E2E until all specs pass.
npm run test:e2e
他のテストのループ
Build Until Green
Run the production build, fix compile and bundling errors, and loop until the build succeeds.
Coverage Until Threshold
Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.
Pre-Commit Guard
Hook that runs tests before git commit commands to block commits when the suite is red.
Format Until Clean
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.
Post-Edit Test Guard
Hook-based loop that runs related tests after file edits to catch regressions early.
Flaky Test Triage
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.