Stay organized with collections
Save and categorize content based on your preferences.
TestFixtures
@Incubating interface TestFixtures
DSL object for configuring test fixtures.
Summary
Properties
|
abstract Boolean |
Flag to enable Android resource processing in test fixtures.
|
abstract 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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TestFixtures\n============\n\n```\n@Incubating interface TestFixtures\n```\n\n|---------------------------------------------|\n| [com.android.build.api.dsl.TestFixtures](#) |\n\nDSL object for configuring test fixtures.\n\nSummary\n-------\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [androidResources](#androidResources:kotlin.Boolean) Flag to enable Android resource processing in test fixtures. |\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enable](#enable:kotlin.Boolean) Flag to enable test fixtures. |\n\nProperties\n----------\n\n### androidResources\n\n```\nabstract var androidResources: Boolean\n```\n\nFlag to enable Android resource processing in test fixtures.\n\nDefault value is 'false'. \n\n### enable\n\n```\nabstract var enable: Boolean\n```\n\nFlag to enable test fixtures.\n\nDefault value is derived from `android.experimental.enableTestFixtures` which is 'false' by\ndefault.\n\nYou can override the default for this for all projects in your build by adding the line\n`android.experimental.enableTestFixtures=true`\nin the gradle.properties file at the root project of your build."]]