commonMain.dk.cachet.carp.test.runSuspendTest.kt Maven / Gradle / Ivy
Go to download
Helper classes relied upon by test projects of all subsystems. E.g., to disable tests specified in common part of projects for the JavaScript runtime only.
package dk.cachet.carp.test
/**
* Supports writing multiplatform tests with suspending functions.
*
* On JVM this runs as `runBlocking` and on JS as an asynchronous test:
* https://youtrack.jetbrains.com/issue/KT-22228
*/
expect fun runSuspendTest( block: suspend () -> Unit )