Skip to content

Testing

We default to Test-driven development (TDD) where possible and keep tests focused on one responsibility at a time.

TDD loop

  1. Focus on one responsibility.
  2. RED: define contracts and APIs without implementation.
  3. RED: write exhaustive tests (they should fail initially).
  4. GREEN: implement the minimum code to pass tests.
  5. 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.