Acing your tests with KMP
summary
Careem runs Kotlin Multiplatform in production for two years and ships a cross-platform SDK that targets JVM, JavaScript (Node), iOS and Android, using SQLDelight for persistence and the Active reactive library for streams. A homegrown mocking library Mockingber provides mocks, spies, argument capture and verify semantics and plans a Gradle generator. Common tests catch a surprising JavaScript regex bug and an iOS invalid-mutability exception; integration tests persist to real databases and now pass on all platforms.
AI-written summary · about
chapters (8)
- 0:00Introduction to speakers
- 1:20Why KMP at Karim
- 5:17Testing challenges in KMP
- 10:14Introducing MockingBird library
- 17:17Mocking dependencies in tests
- 21:37Writing integration tests
- 32:36Key takeaways and conclusion
- 34:18Q&A session
related talks
46mKotlin Multiplatform in a Large Project
39mKotlin Multiplatform: The (Very) Good, The Bad & The Ugly
33mGetting started with KMP
45mHow Kotlin Multiplatform Changed Our Processes
39mKMM Against Everyone
29mKMP for Mobile Developers
29mKMP for Mobile Developers
35mThe Art of KMP: what you need to know as a multiplatform developer
