2021-05-02, 10:00–10:25, General Track 2
Developers use the term "mocks" and "mocking" when referring to several different testing practices.
The talk will standardize the terminology of Mocks, Stubs, and Fakes: their capabilities, the differences between them, and when to use each one.
We'll start with defining Mocks, Stubs, and Fakes: their capabilities, the differences between them, and how to code them.
Next, I'll show an iterative code example where we mock the same code using the above three methods. Every time we mock the same code differently, we get to test different things.
The talk summary would be based on the code examples: covering every mock's strengths and weaknesses, when is it appropriate to use each type of testing method, and a general wrap-up.
If you want to test your code effectively, this talk is definitely for you!