Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class SimpleTestContext(coroutineScope: CoroutineScope) : UIThreadTest.TestContext, CoroutineScope

Properties

Link copied to clipboard
open override val createTestContext: suspend (CoroutineScope) -> SimpleUIThreadTest.SimpleTestContext

Creates the Test Context based on a CoroutineScope

Link copied to clipboard
open override val createTestContextWithConfiguration: suspend (configuration: Unit, scope: CoroutineScope) -> SimpleUIThreadTest.SimpleTestContext

Creates the TestContext based on Configuration and CoroutineScope

Functions

Link copied to clipboard
expect open fun afterTest()
Link copied to clipboard
expect open fun beforeTest()
Link copied to clipboard
fun testOnUIThread(configuration: Unit, cancelScopeAfterTest: Boolean = false, block: suspend SimpleUIThreadTest.SimpleTestContext.() -> Unit)
fun testOnUIThread(cancelScopeAfterTest: Boolean = false, block: suspend SimpleUIThreadTest.SimpleTestContext.() -> Unit)

Run your test block on the UI thread and inside the TestContext.