Acceptance Test-Driven Development

Gior­gio Sironi writes an inter­est­ing TDD story; I am halfway through read­ing Grow­ing object-oriented soft­ware, guided by tests, a book that teaches Test-Driven Devel­op­ment in a Java envi­ron­ment. A review will come soon, since the process described in this work is really language-agnostic and inter­est­ing also for php developers.

How­ever, the book’s authors intro­duce a very pro­duc­tive prac­tice, which con­sists in a dou­ble cycle of TDD:

* a longer cycle, where you write accep­tance (aka end-to-end) tests, deriv­ing them from the user sto­ries or for­mal require­ments, and make them pass;

* a shorter cycle con­tained in the first, which hap­pens in the phase when an accep­tance test is red: you write unit tests and make them pass until the related accep­tance test does not fail anymore.

Read com­plete story @ PHP Zone.

Tags: , , ,

Leave a Comment

*

Get Adobe Flash playerPlugin by wpburn.com wordpress themes