# Test Coroutine Scheduler

DevFeed: [Test Coroutine Scheduler](<https://devfeed.tech/articles/test-coroutine-scheduler-22665.md>)

Original publisher: [Read original article](<https://www.valueof.io/blog/test-coroutine-scheduler-dispatcher-main-rule>)

Author: James Shvarts

Published: 2022-06-24T00:55:12Z

Content type: tutorial

Language: en

Sources: [Android Blog - Mobile Dev Notes](<https://devfeed.tech/sources/android-blog-mobile-dev-notes.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [coroutine](<https://devfeed.tech/tags/coroutine.md>), [deprecated](<https://devfeed.tech/tags/deprecated.md>), [library](<https://devfeed.tech/tags/library.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

## AI overview

A tutorial on testing Kotlin coroutines when code uses the Main dispatcher. It explains how to configure a TestCoroutineScheduler and TestDispatcher with kotlinx-coroutines-test, compares StandardTestDispatcher and UnconfinedTestDispatcher, and warns against the deprecated TestCoroutineDispatcher.

## Source excerpt

Using TestCoroutineScheduler, a scheduler for coroutines used in tests, that provides the delay-skipping behavior.