# TestFixtures

# TestFixtures

```
@Incubating interface TestFixtures
```

|------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.dsl.TestFixtures](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/TestFixtures#) |

DSL object for configuring test fixtures.

## Summary

|                                                                                                                                                  ### Properties                                                                                                                                                  ||
|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/TestFixtures#androidResources:kotlin.Boolean) Flag to enable Android resource processing in test fixtures. |
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enable](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/TestFixtures#enable:kotlin.Boolean) Flag to enable test fixtures.                                                    |

## Properties

### androidResources

```
abstract var androidResources: Boolean
```

Flag to enable Android resource processing in test fixtures.

Default value is 'false'.  

### enable

```
abstract var enable: Boolean
```

Flag to enable test fixtures.

Default value is derived from`android.experimental.enableTestFixtures`which is 'false' by default.

You can override the default for this for all projects in your build by adding the line`android.experimental.enableTestFixtures=true`in the gradle.properties file at the root project of your build.