| name | tdd |
| description | Use red-green-refactor with behavior-first tests. Use when the user wants test-first work, TDD, or integration-style tests. |
TDD
Test behavior through public interfaces. Avoid implementation-coupled tests.
Read tests.md and mocking.md when needed.
Rules
- Prefer integration-style tests.
- One test at a time.
- One red-green loop at a time.
- No horizontal slicing.
- No testing private methods.
- Refactor only after green.
Workflow
- Confirm:
- public interface
- priority behaviors
- test strategy
- Write the first failing test.
- Write the minimum code to pass.
- Repeat for the next behavior.
- Refactor after green.
Per-Cycle Check
- behavior, not implementation
- public interface only
- survives refactor
- minimal code
- no speculative features