Development Methods & Design

Test-Driven Development

English

Overview

A development method where you write a test first, then implement code that satisfies it.

Details

A development method that repeats a cycle of writing a failing test first, writing the minimal implementation to pass it, and then refactoring. This cycle is also called red-green-refactor, and writing the test before the implementation has the side effect of naturally pushing the design toward something more testable -- loosely coupled and broken into small units.

More Programming terms