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

Updated