encyclopegia.org

test-driven development

Test-driven development (TDD) is a way to write source code that involves writing an automated unit-level test case that fails, then writing just enough code to make the test pass, then refactoring both the test code and the production code, then repeating with another new test case. Alternative approaches to writing automated tests is to write all of the production code before starting on the test code or to write all of the test code before starting on the production code. With TDD, both are written together, therefore shortening debugging time needs. TDD is related to the test-first programming concepts of extreme programming, begun in 1999, but more recently has created more general interest in its own right. Programmers also apply the concept to improving and debugging legacy code developed with older methods.

Test-driven development (TDD) is a way to write source code that involves writing an automated unit-level test case that fails, then writing just enough code to make the test pass, then refactoring both the test code and the production code, then repeating with another new test case. Alternative approaches to writing automated tests is to write all of the production code before starting on the test code or to write all of the test code before starting on the production code. With TDD, both are written together, therefore shortening debugging time needs. TDD is related to the test-first programming concepts of extreme programming, begun in 1999, but more recently has created more general interest in its own right. Programmers also apply the concept to improving and debugging legacy code developed with older methods. Improving Application Quality Using Test-Driven Development (TDD) Test Driven Development Conference

References

No reference rows published for this article.

Cite this article

MLA

"test-driven development." encyclopegia.org, 2026, https://encyclopegia.org/wiki/test-driven-development. Accessed 24 November 2026.

Chicago

"test-driven development." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/test-driven-development.

APA

encyclopegia.org. (2026). test-driven development. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/test-driven-development

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Salvatore Giunta

stub · references available

Tago Mago

stub · references available

Rafael Valls

stub · references available

Jure Robič

stub · references available

The Bill

stub · references available

The Best of Depeche Mode Volume 1

stub · references available

Capability Maturity Model

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1376667655 · 0.55 · snapshot test-driven-development-109757-9fe52c6f898db823 · QID Q950250

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.