Start native apps faster with the Composables CLI ->
Class

ComposeUiTestConfig

Defines the configuration requirements for a Compose test environment.

Source set: Android
public class ComposeUiTestConfig

Defines the configuration requirements for a Compose test environment.

This configuration allows for fine-grained control over the test execution environment, including the coroutine contexts used for composition and test execution, the overall test timeout, and the initial input mode.

Source set: Common
public class ComposeUiTestConfig(
    effectContext: CoroutineContext = EmptyCoroutineContext,
    runTestContext: CoroutineContext = EmptyCoroutineContext,
    testTimeout: Duration = 60.seconds,
    inputMode: InputMode = InputMode.Touch,
    failurePolicy: TestFailurePolicy = TestFailurePolicy(),
)

Defines the configuration requirements for a Compose test environment.

This configuration allows for fine-grained control over the test execution environment, including the coroutine contexts used for composition and test execution, the overall test timeout, and the initial input mode.

Properties

effectContext

Source set: Common
public val effectContext: CoroutineContext

runTestContext

Source set: Common
public val runTestContext: CoroutineContext

testTimeout

Source set: Common
public val testTimeout: Duration

inputMode

Source set: Common
public val inputMode: InputMode

failurePolicy

Source set: Common
public val failurePolicy: TestFailurePolicy