---
title: "ComposeUiTestConfig"
description: "Defines the configuration requirements for a Compose test environment."
type: "class"
---
## API Reference

> Source set: Android

```kotlin
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

```kotlin
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

```kotlin
public val effectContext: CoroutineContext
```

### runTestContext

> Source set: Common

```kotlin
public val runTestContext: CoroutineContext
```

### testTimeout

> Source set: Common

```kotlin
public val testTimeout: Duration
```

### inputMode

> Source set: Common

```kotlin
public val inputMode: InputMode
```

### failurePolicy

> Source set: Common

```kotlin
public val failurePolicy: TestFailurePolicy
```
