Title: Classic and London styles of TDD Date: 2016-07-01 23:39 Author: eamonnfaherty Category: testing Slug: classic-and-london-styles-of-tdd Status: draft
Within the TDD world there are at least two different schools:
- the classic approach (defined by Kent Beck in Test Driven Development
- the London approach (defined by Steve Freeman and Nat Pryce in Growing Object-Oriented Software Guided by Tests
The classic approach focuses on building from the bottom up. You start by defining smaller units in the regular red-green-refactor workflow whereas in the London style you define from the top down. You define what the system does as a whole and you replace parts as you develop them again in a red-green-refactor workflow.
The London approach is well suited to object oriented software as you start with a focus on the capabilities of a system. It is useful when you have a lot of confidence your requirements will not change - for example when you are working with a specification by example approach.
The classic approach is well suited to non object oriented software as you are focused on the effect