February 2013
Intermediate to advanced
258 pages
7h 26m
English
What’s this test double I speak of? If you don’t have test doubles in your programmer’s toolkit, you’re missing out on a lot of testing power. Test double is an umbrella term for what some programmers have come to know as stubs, fakes, or mocks (which is short for mock object). Essentially they’re objects that you substitute for the real implementation for testing purposes. See figure 2.4.

You could say that test doubles are a test-infected programmer’s best friend. ...