Test-driven Development (TDD)TDD test-driven tdd development
Test-driven development (TDD) is a development technique where you must write a test that fails before you write new functional code.
- Write a failing test
- Write code to make it pass.
- Repeat steps 1 and 2.
- Along the way, refactor aggressively.
- When you can’t think of any more tests, you must be done.
Written on March 3, 2018