test-driven coding

noun
UK /tɛst ˈdrɪvən ˈkəʊdɪŋ/
US /tɛst ˈdrɪvən ˈkoʊdɪŋ/

A way of writing computer programs where you write the tests first, then make the code pass them.

Our teacher showed us test-driven coding by writing a check before writing the program.


OTHER MEANINGS

2. A coding habit where every new feature starts with a failing test.

With test-driven coding, she always sees a red test before writing any new code.

3. A method that helps programmers catch mistakes early by testing small pieces of code.

Test-driven coding caught the bug before the app was even finished.

4. A teamwork approach where tests describe what the program should do.

The team used test-driven coding so everyone knew exactly what each part should do.