Of Spies, Fakes and Friends - Help Your Code Lead a Double Life! - Rabea Gleissner thumbnail

Of Spies, Fakes and Friends - Help Your Code Lead a Double Life! - Rabea Gleissner

28 Sep 2018
  • Locked

You’ve started writing unit tests for your applications but aren't quite sure what mocks and spies are about? You sometimes run into trouble because you have so many dependencies in your tests? You don’t know how to test your code that calls an API? Well, this session could help you out! Find out how test doubles come in handy when you’re test driving your code.

In this talk you’ll learn about the different types of test doubles and their purpose. I’ll demonstrate how they can help you make your test driven life a lot easier. There will be code examples for rolling your own test doubles and also for using doubles provided by one of the popular testing frameworks.

Attendees will learn how test doubles can simplify their tests and make the untestable testable. They will also learn to distinguish between the different types of test doubles, which ones to use in which situation and why what we colloquially call a “mock” isn’t always a mock.


Comments

Sign in to comment
Explore MoT
From test cases to AI-ready quality data: why structure matters image
Learn how to structure and organize test management data as an AI-ready foundation that gives AI systems richer context for testing insights and workflows.
MoT Intermediate Certificate in Test Automation image
Elevate to senior test automation roles with mastery in automated checks, insightful reporting, and framework maintenance
This Week in Quality image
Debrief the week in Quality via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter