Nightly Test Quality Improvement
The caller provides:
- Mode: "nightly" or "general"
- Changed files (nightly mode only): list of source files changed in the last 24 hours
Nightly Mode
- For each changed source file, find its corresponding test file(s)
- Analyze those test files for: missing edge cases, weak assertions (toBeTruthy instead of specific values), missing error path coverage, tests that test implementation rather than behavior
- Improve the test files with the most impactful changes
- Run the full test suite to verify all tests pass
- Commit changes with conventional commit messages
- Create a PR with
gh pr createsummarizing what was improved and why
General Mode
- Scan the test files to find weak, brittle, or poorly-written tests
- Look for: missing edge cases, weak assertions (toBeTruthy instead of specific values), missing error path coverage, tests that test implementation rather than behavior
- Improve 3-5 test files with the most impactful changes
- Run the full test suite to verify all tests pass
- Commit changes with conventional commit messages
- Create a PR with
gh pr createsummarizing what was improved and why