January 11, 2007

I Grok the Mock

Filed under: Software Blog — marcstober @ 10:02 am

Interesting article about unit testing:


This clarified two things for me:

1. What exactly are these “mock objects” I keep hearing so much about.

2. Why I like writing unit tests in certain ways, other than just intuition. (It turns out I’m a state/classical unit tester; and I now have a mental framework for deciding when to stick with that vs. when to try behavior/mockist testing instead.)

Via Ned Batchelder’s blog.