Skip to content

Fake it (TDD)

One of three strategies in test-driven development for quickly getting a green bar. Start by returning a constant, then gradually replace it with real code.

Other strategies

  • Obvious implementation: If an obvious implementation comes to mind immediately, just write it.
  • Triangulation: When it is unclear how to refactor, add a new failing test to draw out a general solution that passes multiple tests.
Created
Updated

Machine-translated from the Korean original.

2026 © ak | markdown | 한국어