Test doubles, also known as “mocks”, managed to gain a reputation for causing unreadable and hard-to-maintain tests. Is the screwdriver to blame for the inability to hammer in the nail?
In this talk, Jakub will go back to the origins of test doubles to explain scenarios when they’re best used. We’ll discuss various types of test doubles based on examples and show how to make them trustworthy. Finally, we’ll explore the possibilities of replacing auto-mocking libraries with hand-crafted test doubles using features of a modern programming language like Kotlin.