commonMain.dk.cachet.carp.test.runSuspendTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carp.test-jvm Show documentation
Show all versions of carp.test-jvm Show documentation
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 )