Skip to main content
Bluecoders
← Tech glossary

TDD

Methodology

TDD = the test before the code

TDD (Test-Driven Development) is a development method where you first write an automated test describing the expected behavior, then the minimal code to make it pass, before improving that code. It was popularized by Kent Beck, in the wake of Extreme Programming.

The cycle has three steps, often called "red, green, refactor":
- write a failing test (red);
- write just enough code to make it pass (green);
- clean up the code without breaking the tests (refactor).

TDD forces the need to be clarified before coding, limits unnecessary code and produces a test suite that secures future changes. Its cost: a slower start and a discipline that not every team sustains over time.

Why it matters when hiring

Many candidates mention TDD, few actually practice it. The most reliable check is a pair-programming exercise: you quickly see whether the person starts with the test and moves in small steps. Not practicing TDD is not disqualifying, but a senior developer should be able to write useful tests and explain their testing strategy.

A recruitment need?

Describe what you need. A recruiter from your sector will call you back within 24 business hours.