Kent Beck

Test-Driven Development: By Example

Kent Beck's short book on writing a failing test first, making it pass, and cleaning up, in very small steps.

The argument. Write a failing test, make it pass in the simplest way, then clean up. Repeat in very small steps. Beck, who popularised the practice, shows it by building working examples live in the book. The rhythm gives steady progress, a working system at every moment, and a design shaped by how it is used.

Ideas worth keeping

Where it shows in Classroom Manager

New behaviour in the program usually starts with a test that states it in one sentence, such as what happens when a display change is not confirmed, so the list of tests reads like the specification.

Who should read it

Developers who have never tried test-first work, and managers who wonder why teams that write tests move faster over time.

Find the book (Open Library) ↗ (opens in a new tab)

Notice: the title, the author's name and any related marks, names and trade dress of the book discussed on this page are the property of their respective owners and are referred to for the purposes of identification, criticism and review only. Dausuva is not affiliated with, sponsored by or endorsed by the author or the publisher. The summary above is original text written by Dausuva, does not reproduce the book, and does not replace it. All rights in the book are reserved by their respective owners.