Mocking without reflection for Kotlin/Multiplatform
summary
Shows how to replace runtime reflection for mocking in Kotlin/Multiplatform by using KSP (Kotlin Symbol Processor) to generate mocks at compile time. Covers the design and limitations of the MocKMP generator and its runtime across multiplatform targets, the DSL for describing and verifying mocks, and how to package the KSP plugin, mock generator and runtime into a custom Gradle plugin for easy use.
AI-written summary · about
related talks
38mKSP and Plugins. Optimizing Kotlin Multiplatform common code
38mMultiplatfom projects with Kotlin
36mKotlin Multiplatform- From “Hello World” to the Real World
19mHow to write a mock-free app
48mEffective Multiplatform Kotlin Development
21mIt's Time for Kotlin Multiplatform Mobile
33mMeta-programming with KSP and Kotlin compiler plugins
43mLevel up on Kotlin Multiplatform