Test utilities for kotlinx.coroutines.

All Types

kotlinx.coroutines.test.DelayController

Control the virtual clock time of a CoroutineDispatcher.

kotlinx.coroutines.Dispatchers (extensions in package kotlinx.coroutines.test)

kotlinx.coroutines.test.TestCoroutineDispatcher

CoroutineDispatcher that performs both immediate and lazy execution of coroutines in tests and implements DelayController to control its virtual clock.

kotlinx.coroutines.test.TestCoroutineExceptionHandler

An exception handler that captures uncaught exceptions in tests.

kotlinx.coroutines.test.TestCoroutineScope

A scope which provides detailed control over the execution of coroutines for tests.

kotlinx.coroutines.test.UncaughtExceptionCaptor

Access uncaught coroutine exceptions captured during test execution.

kotlinx.coroutines.test.UncompletedCoroutinesError

Thrown when a test has completed and there are tasks that are not completed or cancelled.