Mocks: by-the-book vs practical
Lately, there's been some formalization of the definitions
of mocks, stubs, fakes and dummies, which Fowler popularized
through his site with his article
Mocks aren't Stubs
by introducing the concepts from Gerard Meszaros'
xUnit patterns book.
I haven't read the book, but the definitions are sensible.
The article attempts to clarify the Mock and Stub concepts,
while trying to separate them from the testing styles known
as mockist TDD and state/classic TDD. In my opinion, the
article fails because the very concept of a Mock is quite
different in the mind of one or the other kind of TDDer.
...