SimpleUIThreadTest
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
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.