Book Series, Book of the Day

Test-Driven Development By Example | Book Series

Overview:

This book is a very useful tool for beginners who wonder how to start with TDD approach of software development. TDD replies to all the contradictions that lie behind the pain of programming with a paradox — “Test before you write” or “ Write after you test”. This book walks the readers through the set of proven techniques that encourages simple designs and test suites to garner strength and confidence required to overcome the Herculean tasks of a programmer.

Highlights of the book:

  • Write code for tests that failed in automation testing
  • Introduction to TDD (Test-Driven Development) concepts
  • Basics of Unit test framework
  • TDD techniques and refactorings explained with myriads of examples

Authors:

Kent Beck

Published In:

2000

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,