Testing
We default to Test-driven development (TDD) where possible and keep tests focused on one responsibility at a time.
TDD loop
- Focus on one responsibility.
- RED: define contracts and APIs without implementation.
- RED: write exhaustive tests (they should fail initially).
- GREEN: implement the minimum code to pass tests.
- REFACTOR: improve general code quality.
Why this matters
The loop promotes continuous verification and encourages clean decomposition.
Read more
See TDD: Red, Green, Refactor for a refresher.