docs: add test coverage guidelines to test-validate skill (#99)

This commit is contained in:
Zihao Xu
2026-01-24 23:29:40 -08:00
committed by GitHub
parent 0d8a001f8c
commit 5fa8016334

View File

@@ -18,3 +18,16 @@ description: Run Python tests using the project venv
# Run server (dev mode)
.venv/bin/python src/server/main.py --dev
```
## Test Coverage Guidelines
After making code changes, consider whether tests are needed:
| Change Type | Test Recommendation |
|-------------|---------------------|
| Bug fix | Add regression test to prevent recurrence |
| New feature | Unit tests + integration test if affects multiple modules |
| Refactor | Existing tests should pass; add tests if behavior changes |
| Config/docs | Usually no tests needed |
For bug fixes, ensure the test would have **failed before the fix** and **passes after**.