Post-Merge Regression Guard
Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.
起動プロンプト
Install and run the "Post-Merge Regression Guard" loop.
Goal: smoke tests pass immediately after every merge or rebase.
Between iterations run: npm run test:smoke
Exit when: smoke suite exits 0.
Step 1: After a merge, run smoke tests. Fix regressions before continuing other work.基本情報
カテゴリ
テスト
目標
smoke tests pass immediately after every merge or rebase.
検査コマンド
npm run test:smoke
退出条件
smoke suite exits 0.
対応エージェント
Cursor
手順
- 1
Detect merge
Confirm a merge or rebase just completed. Identify affected areas from the diff stat.
- 2
Run smoke suite
Run the fast smoke test suite. Fix any failures before starting new feature work.
npm run test:smoke
他のテストのループ
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.
Flaky Test Triage
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.
Post-Edit Test Guard
Hook-based loop that runs related tests after file edits to catch regressions early.