Stay organized with collections
Save and categorize content based on your preferences.
HasTestFixturesBuilder
@Incubating interface HasTestFixturesBuilder
Interface that mark the potential existence of test fixtures associated with a variant.
Summary
Properties
|
abstract Boolean |
Set to true if the variant's has test fixtures, false otherwise.
|
Properties
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# HasTestFixturesBuilder\n======================\n\n```\n@Incubating interface HasTestFixturesBuilder\n```\n\n|-----------------------------------------------------------|\n| [com.android.build.api.variant.HasTestFixturesBuilder](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ApplicationVariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ApplicationVariantBuilder), [DynamicFeatureVariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/DynamicFeatureVariantBuilder), [LibraryVariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/LibraryVariantBuilder) |----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------| | [ApplicationVariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/ApplicationVariantBuilder) | Application specific variant object that contains properties that will determine the variant's build flow. | | [DynamicFeatureVariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/DynamicFeatureVariantBuilder) | \u003cbr /\u003e | | [LibraryVariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/LibraryVariantBuilder) | [VariantBuilder](/reference/tools/gradle-api/7.1/com/android/build/api/variant/VariantBuilder) type for library projects | |\n\nInterface that mark the potential existence of test fixtures associated with a variant.\n\nSummary\n-------\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enableTestFixtures](#enableTestFixtures:kotlin.Boolean) Set to `true` if the variant's has test fixtures, `false` otherwise. |\n\nProperties\n----------\n\n### enableTestFixtures\n\n```\nabstract var enableTestFixtures: Boolean\n```\n\nSet to `true` if the variant's has test fixtures, `false` otherwise.\n\nDefault value will match [com.android.build.api.dsl.TestFixtures.enable](../dsl/TestFixtures.html#enable:kotlin.Boolean) value\nthat is set through the extension via\n[com.android.build.api.dsl.TestedExtension.testFixtures](../dsl/TestedExtension.html#testFixtures(kotlin.Function1))."]]