Ever wished you had more control over third-party API responses? Have you been unable to test specific API responses? Perhaps you’re trying to improve the stability of your automation suites? Have you just started writing unit and integration tests? Maybe you’re building a client for an API that hasn’t been built yet, and you want to get testing earlier? Facing these challenges, mocks, stubs, fakes and spies are essential to testability and can be used both in your automation and as a tool to aid you in your exploratory testing.

In this workshop, the group will explore mocks, stubs, fakes and spies. You’ll come away with ideas on when these techniques are appropriate, how to gradually build up features in the tools you create to mimic services and you will know just how quick it is to go from idea to working tool. Some programming experience is preferred, but anyone who has an interest in testability will find the workshop rewarding. Key takeaways are:

· Recognise the common terminology used in the stubs, fakes, spies and mocks domain
· Understand the difference between stubs, fakes, spies and mocks through their characteristics and use cases
· Apply this foundational knowledge to build a gradually more featured tool to illustrate the journey from stub to fully fledged mock.

The systems we test are massively integrated with many different data sources, and this is only going to increase. With the ability to mimic key services, your dependencies won’t be the bottleneck that stops you from delivering information of value, early and often.

 

Lifes a Riot with Stubs, Fakes, Spies & Mocks is run by Ash Winter & Christopher Chant. To date, it has been held at Testbash Brighton 2018, Poland Testing Cup 2018 and will be held at Testbash Manchester 2018.