top of page

Ronaldo Pace
Android Teach Lead @ Diconium GmbH
Senior developer and tech-lead at Diconium. I've been working with Android for more than 10 years.
How to write a mock-free app
Frameworks like Mockito and MockK introduces an invisible abstraction layer with a huge API surface that make your tests complex and easy to break.
In the presentation "Beyond the Mockery" on Droidcon Berlin 2023 by Ash Davies he discusses the pitfalls and traps associated with mocking frameworks and how Devs should never mock classes.
In this talk we'll pick up where "Beyond the Mockery" ends and put its idea to practice by discussing a few easy to follow patterns to avoid mocks using pure Kotlin to achieve fully testable and mock-free ViewModels and Repositories.
Those are battle-tested patterns that are in use in production on a 80+ gradle modules project that have been downloaded more than 3 million times in the PlayStore.
bottom of page