ECC TDD Workflow
Default cycle:
- •Write/extend tests (failing)
- •Implement minimal code to pass
- •Refactor (only after green)
- •Re-run tests and lint
Checklist:
- •Tests cover: happy path, edge cases, error cases
- •Deterministic: no time/network flakes unless mocked
- •Clear assertions; avoid over-mocking
If tests are expensive:
- •Add a fast unit layer first
- •Add integration/E2E only where needed