Test Driven Development | Glossary

 

Definition

Test-driven development refers to a programming style in which three central activities (programming, coding and testing) activities are tightly interwoven. It follows a specific set of rules:

  • Write a ‘single’ unit test describing an aspect of the program.
  • Run the test first time, identity the missing component after failure.
  • Write more code, in the simplest way. Pass the test.
  • Refactor the code to conform to simplicity criteria.
  • Keep on repeated ‘testing’ over time.

Further Reading

  • “Test-Driven Development: An Empirical Evaluation of Agile Practice”(book), by Lech Madeyski.
  • For more on TDD, read here,