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.