Cleancoders – Episode 23 Mocking Part 1
English | .MP4 | Audio: aac, 48000 Hz, stereo | Video: h264, yuv420p, 1920×1080, 29.97 fps(r) | 1.05 GB
Welcome to Clean Code Episode 23 – Mocking; part of our sub-series on advanced Test Driven Development. In this episode we’re going to learn about Test Doubles and Mocking.
We begin with a little puppet show. You’ll recognize the characters. You’ll also recognize the situation; because, in all likelihood, you’ve been there – done that. That situation will lead us to a software architecture replete with dependency-inverted boundaries. As the players in our drama discuss how to test the features in that architecture, we’ll gradually make the case for using mocks.
Then we’ll show you those mocks in a sequence of screencasts that begin with basic stubs and moving on to more involved spies. There’s a lot of code to look at; and of course you can download it all from the extras link.
Then we get all academic and study the classification of Test Doubles. We talk, in depth, about dummies, stubs, spies, mocks, and fakes. And there is plenty of code describing each.
All that takes an hour. And at the end of that hour, part 1 comes to an end. But don’t forget to watch part 2, because things get pretty interesting over there.