PLAY PODCASTS
MockK with Mattia Tommasone
Episode 48

MockK with Mattia Tommasone

Elegant Mocking in Kotlin with MockK and Mattia Tommasone

The Developers' Bakery

December 14, 202247m 15s

Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

It’s time to talk about Fake vs Mock once for all!

Today, we do have Mattia Tommasone on stage to talk about MockK a popular mocking framework for Kotlin.

MockK allows you to write elegant tests thanks to its idiomatic DSL. Mattia had the opportunity to take over the maintainance of this library and he’s going to explain us how it works internally.

But do we even need to mock at all? In this episode we’ll touch on when mocking is useful and when you should think twice before using it.

Enjoy the show 👨‍🍳

Show Notes

  • 00.13 Intro
  • 00.58 Episode Start
  • 01.28 Mattia’s Introduction
  • 05.34 Mocking on the JVM
  • 09.24 What is MockK?
  • 11.41 Why the need for a new mocking library?
  • 14.31 How mocking works internally?
  • 18.50 Testing a mocking framework
  • 21.49 MockK’s Performances
  • 24.46 Multiplatform support
  • 27.03 Fake vs Mock
  • 31.40 Auto-detecting what to don’t mock
  • 32.51 What’s next for MockK?
  • 35.26 Looking for new maintainers
  • 38.32 Hacktoberfest
  • 40.29 Further reading
  • 45.16 Where people can find you online?

Resources

Show links