# Testing Kotlin Coroutines

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

Original publisher: [Read original article](<https://kt.academy/article/cc-testing>)

Published: 2021-10-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

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

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [library](<https://devfeed.tech/tags/library.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This tutorial explains how to test Kotlin suspending functions and coroutines using fakes or mocks, assertions, and coroutine test utilities. It focuses on testing time-dependent behavior with simulated time so unit tests run quickly.

## Source excerpt

How we test Kotlin Coroutines, including common Android and backend cases.