A fan of Kotlin since the 1.0 of the language. Android Developer Relations Engineer at Google. Lecturer at BME-VIK, teaching a standalone Kotlin course. Creator of requireKTX, RainbowCake, and Krate. Ranked right around the very top of the Kotlin tag on StackOverflow.
Untangling Coroutine Testing
09:00 > 40 min
Coroutines are embraced on Android as the tool to perform asynchronous operations and manage threading in your apps. Testing them requires some extra work and a solid understanding of coroutine concepts like scopes and dispatchers.
In this talk, we’ll cover the new guidance we've released for testing coroutines on Android, using the latest available testing APIs introduced in kotlinx.coroutines 1.6. We'll go from the simplest cases all the way to Flows, look at Android-specific problems you might face, and learn best practices and patterns you can use in your tests.