Workflow
- •Identify best test layer (unit vs integration vs e2e) for the behavior.
- •Add/modify tests so they express the acceptance criteria.
- •Run tests and confirm they fail for the right reason.
- •Record:
- •which test failed,
- •why it failed,
- •what minimal change should make it pass.
Rules
- •Test behavior, not structure.
- •Avoid asserting internal/private functions unless repo convention demands it.
- •Prefer table-driven tests for edge cases.