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
Red, Green, Refactor - CI/CD Glossary DefinitionRed, Green, Refactor: Red, Green, Refactor is the core cycle of test-driven development: write a failing test…
Behavior-Driven Development - CI/CD Glossary DefinitionBehavior-Driven Development: Behavior-driven development (BDD) extends TDD by describing desired behavior in…
Test Coverage - CI/CD Glossary DefinitionTest Coverage: Test coverage is the percentage of your code (lines, branches, or functions) that is executed…