TestCoroutineScope

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

Functions

cleanupTestCoroutines
Link copied to clipboard
abstract override fun cleanupTestCoroutines()
Call after the test completes.

Extensions

runBlockingTest
Link copied to clipboard
fun TestCoroutineScope.runBlockingTest(block: suspend TestCoroutineScope.() -> Unit)
Convenience method for calling runBlockingTest on an existing TestCoroutineScope.