Test-Driven Iteration

Claude Code

Definition

A Claude Code workflow where tests are written or identified before implementation, and each iteration is verified by running the test suite. Claude uses test failures as feedback to correct its approach. The 'interview pattern' involves asking clarifying questions before writing any code.

Example Usage

Instruct Claude to write failing tests first, then implement code to pass them — failing tests provide clearer correction signals than vague feedback.