Good Test Skill
A skill that does one thing well.
Trigger
Use when user asks to do X. NOT for Y or Z.
Iron Law
Never write code without a failing test first. Write code before test? Delete it.
Process
- Write test
- Watch it fail
- Write minimal code
- Verify it passes
npm test - Refactor
Rationalizations
| Excuse | Reality |
|---|---|
| "Too simple" | Simple breaks. Test takes 30s. |
| "I'll test after" | Tests after prove nothing. |
When Stuck
| Problem | Solution |
|---|---|
| Don't know | Ask |