What is Test-Driven Development (TDD)?
Software EngineeringDevelopment practice of writing tests before implementation code to guide design.
TDD follows the red-green-refactor cycle: write a failing test, write code to pass it, then refactor. It produces well-tested, well-designed code and serves as living documentation.