Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Designing Klingon Warships Using Behaviour Driven Development
Feb 11, 2008 @ 21:34:00

The Zend Developer Zone has another new tutorial from Padraic Brady talking about testing your applications (i.e. unit tests). In this new article, he expands on his previous one and dives a bit deeper into the behaviour-driven development process.

In this article, I introduce a TDD related practice called Behaviour-Driven Development which has been gathering attention for over a year and gaining converts (like me!).

He briefly covers what BDD is and how it can be used to solidify code against issues that might come up down the road (and how it compares to test-driven development). Some sample code/tests are included to give you a better idea of how it all fits together - a set of scenarios for any given "story". True to the title, Padraic writes his tests around the construction of a Klingon Bird of Prey ship.

tagged: birdofprey behavious driven development unittest fluent plain english

Link:


Trending Topics: