xUnit Test Patterns has been released. Gerard Meszaros has been working on this book for a while, and it shows. It's 883 pages of patterns related to unit testing. He has patterns for everything from setup to dependency injection. It's a complete reference.
His definitions for mock, stub, and fake differ a bit from the ones that I used in Working Effectively with Legacy Code, but I'm glad that we now have a good set of names that we can rally around. Different authors have been using different terminology for test doubles for about five or six years and it had to be settled.
XUnit Patterns is a great all around reference. Recommended.
Comments