Overview
Execute the full test suite and systematically fix any failures, ensuring code quality and functionality.
Steps
- Run test suite
- Execute all tests in the project that are relevant to the current changes you are making
- Capture output and identify failures
- Check both unit and integration tests
- Analyze failures
- Categorize by type: flaky, broken, new failures
- Prioritize fixes based on impact
- Check if failures are related to recent changes
- Fix issues systematically
- Start with the most critical failures
- Fix one issue at a time
- Re-run tests after each fix
Test Recovery Checklist
- Full test suite executed
- Failures categorized and tracked
- Root causes resolved
- Tests re-run with passing results
- Follow-up improvements noted
Guardrails
- Fix the root cause of a failure; never delete or weaken a test to go green.
- Never silently skip a failing test; report it and the reason.
- Do not commit, push, merge, or run destructive commands without explicit user consent.