testSuspend

expect fun testSuspend(    context: CoroutineContext = EmptyCoroutineContext,     timeoutMillis: Long = 60L * 1000L,     block: suspend CoroutineScope.() -> Unit): TestResult

Deprecated

testSuspend is deprecated, use runTest function instead

Replace with

import kotlinx.coroutines.test.runTest
runTest { block() }

Test runner for common suspend tests.

Report a problem

actual fun testSuspend(context: CoroutineContext, timeoutMillis: Long, block: suspend CoroutineScope.() -> Unit): TestResult

Test runner for js suspend tests.

Report a problem

actual fun testSuspend(context: CoroutineContext, timeoutMillis: Long, block: suspend CoroutineScope.() -> Unit): TestResult

Test runner for jvm suspend tests.

Report a problem

actual fun testSuspend(context: CoroutineContext, timeoutMillis: Long, block: suspend CoroutineScope.() -> Unit): TestResult

Test runner for native suspend tests.

Report a problem

actual fun testSuspend(context: CoroutineContext, timeoutMillis: Long, block: suspend CoroutineScope.() -> Unit): TestResult

Test runner for js suspend tests.

Report a problem