Skip to content
Latchkey

Test-Driven Development - CI/CD Glossary Definition

Test-driven development writes the test first, then the code, then refactors, in short repeated cycles.

Test-driven development (TDD) is a practice of writing a failing test before writing the code to satisfy it, then refactoring. Tests drive the design and act as living specification.

TDD, popularized by Kent Beck, produces a comprehensive suite as a byproduct and encourages small, well-defined units. It follows the red, green, refactor loop.

In CI

A TDD codebase tends to have high, meaningful coverage, which makes CI a reliable gate against regressions.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →