MockK is a powerful library. It uses the best of Kotlin to let us define mocks and verification blocks clearly and expressively. It also allows us mock elements typical to Kotlin, like top-level functions and properties, object declarations, or suspending functions. In this workshop, you will learn how to use these capabilities, to use MockK effectively and to improve testing quality in real-life projects.

On the workshop you will

Learn from lecture supported by slides

Solve coding challenges

Complete practical exercises

During the workshop we cover:

  • Mocking in MockK
  • Mocking classes, relaxed mock, return values, functions
  • Mocking by annotations
  • Partial arguments matching - any()
  • Call verification
  • Object mocking
  • Spy
  • Answer
  • Arguments capturing and validation
  • Best practices for mocking and testing

How long does it take?

This workshop lasts 1 day.

Requirements

  • At least basic Kotlin understanding.

Professional training materials

All attendees of the workshop will receive a printed book plus a code to download the Effective Kotlin ebook for free.

Kt. Academy materials

Register

Choose this option if you need a workshop for your team or company. The basic price is 2000 EUR for the group for 1 days.

Private workshop

Choose this option if you need a workshop for yourself or for a small group of people. The basic price is 180 EUR per person for the whole workshop.

Open online workshop

Our experts offer consultations for both companies and individuals. The price is set individually.

Contact us