# Test-Driven Development

*noun*

say it: **“TEST DRIV-un dih-VEL-up-ment”** **/tɛst ˈdrɪvən dɪˈvɛləpmənt/**

Writing a failing test first, then just enough code to make it pass, then tidying up.

## What is **Test-Driven Development**?

**Test-driven development** (TDD) means writing a failing test first, then the minimum code to pass it, then tidying up.

## In a sentence

- “With **test-driven development**, I wrote the discount test before the discount code.”

Level: Apprentice · [More Unit Testing terms at this level](https://www.ask-codey.com/glossary?category=unit-testing&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/test-driven-development
