Untangling Coroutine Testing

May 04, 2023 43 min Free

Description

Coroutines are widely used on Android for asynchronous operations and thread management. Testing them requires specific approaches and a deep understanding of coroutine concepts like scopes and dispatchers.

This talk explores the latest guidance for testing coroutines on Android, leveraging the testing APIs introduced in `kotlinx.coroutines` version 1.6. It covers everything from basic suspending function tests to advanced topics like Flows and Android-specific challenges, offering best practices and patterns for robust testing.

Presented by Márton Braun, Android Developer Relations Engineer at Google.