# Testing Kotlin Coroutines

DevFeed: [Testing Kotlin Coroutines](<https://devfeed.tech/articles/testing-kotlin-coroutines-32081.md>)

Original publisher: [Read original article](<https://www.maiatoday.net/p/testing-kotlin-coroutines/>)

Published: 2019-12-08T04:47:30Z

Content type: tutorial

Language: en

Sources: [maiatoday](<https://devfeed.tech/sources/maiatoday.md>)

Topics: [kotlin-coroutines](<https://devfeed.tech/topics/kotlin-coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Testing](<https://devfeed.tech/topics/testing.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [code](<https://devfeed.tech/tags/code.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [devfest](<https://devfeed.tech/tags/devfest.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A tutorial on testing Kotlin coroutines by injecting dispatchers and using testing APIs to make tests more reliable and controllable.

## Source excerpt

How to test kotlin coroutines by injecting dispatchers and using the testing apis. No one wants flakey tests and I want a time machine.