You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/ui/contract/src/commonTest/kotlin/net/thunderbird/core/ui/contract/mvi/UnidirectionalViewModelKtTest.kt
* Platform-agnostic test harness for Compose UI tests.
5
10
*
6
-
* It wraps the platform-specific implementation of the test harness to allow for consistent testing across platforms.
11
+
* The harness wraps the platform-specific [androidx.compose.ui.test.v2.runComposeUiTest] implementation and exposes a
12
+
* common [ComposeUiTestScope].
7
13
*/
8
14
publicexpectabstractclassComposeUiTestHarness() {
9
15
10
16
/**
11
-
* Run a compose UI test harness with the provided block.
17
+
* Runs a Compose UI test.
18
+
*
19
+
* The parameters mirror [androidx.compose.ui.test.v2.runComposeUiTest]. [effectContext] is used for composition,
20
+
* `LaunchedEffect`, `rememberCoroutineScope`, and the main test clock. [runTestContext] is used for the test block.
21
+
* Compose requires these contexts to not share a [kotlinx.coroutines.test.TestCoroutineScheduler].
12
22
*
23
+
* @param effectContext The [CoroutineContext] to use for the [androidx.compose.ui.test.v2.runComposeUiTest] implementation.
24
+
* @param runTestContext The [kotlinx.coroutines.test.StandardTestDispatcher] to use for the [androidx.compose.ui.test.v2.runComposeUiTest] implementation.
25
+
* @param testTimeout The timeout for the test, defaults to 60 seconds.
13
26
* @param block The block of code to execute within the Compose UI test harness.
0 commit comments