TDD

TDD (test-driven development) is a software development practice that repeats a short cycle of writing a failing test, writing the minimal code to pass it, and then refactoring.

1 articleLast mentioned

TDD (test-driven development) is a software development practice in which tests are written before the implementation code. It repeats a short cycle of writing a failing test (red), writing the minimal code that makes it pass (green), and cleaning up the code while preserving behavior (refactor); this cycle is known as red-green-refactor. Kent Beck systematized it in the late 1990s as a core practice of Extreme Programming (XP), and his 2003 book "Test-Driven Development: By Example" spread it widely.

Beck later summarized the canonical procedure, in which a list of scenarios to test is written first and worked through one at a time, under the name Canon TDD. In AI coding tools, TDD procedures are built into prompts or harnesses as a way to verify agent-generated code and keep the scope of each step small.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • Example Mapping Plus TDD Lifts AI Agent Code Correctness From 27% to 94%AI in Practice ·

    …bandon AI agents but to adapt long-standing engineering techniques, test-driven development (TDD) and refactoring, so that they steer the model instead of being…

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.