Registry / testing / kotlinx-coroutines-test

kotlinx-coroutines-test

JSON →
library1.10.2javamavenunverified

Kotlinx Coroutines Test provides utilities for testing coroutines, including test dispatchers and time control.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-test</artifactId> <version>1.10.2</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-COROUTINES
K
kotlinx-coroutines-test
testingjavav1.10.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

runTest
kotlinx.coroutines.test.runTest

Demonstrates using runTest to test a coroutine.

import kotlinx.coroutines.test.runTest class ExampleTest { @Test fun testCoroutine() = runTest { // your test code } }
Debug
Known issues
gotcharunTest may behave differently in older versions; ensure you use the correct test dispatcher.
fix
Use kotlinx-coroutines-test version 1.6.0 or later for stable runTest behavior.
affects: <1.6.0
Upgrade
Version history
1.10.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
kotlinx-coroutines-test — mvn dependency:get kotlinx-coroutines-test · libregistry