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(),
    boundsAssertionTolerance: Dp = Dp.Unspecified,
)

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

boundsAssertionTolerance

Source set: Common
public val boundsAssertionTolerance: Dp
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: