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
Public properties |
Boolean |
Set to true if the variant's has test fixtures, false otherwise.
|
Public 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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# HasTestFixturesBuilder\n======================\n\n\n```\n@Incubating interface HasTestFixturesBuilder\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ApplicationVariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/ApplicationVariantBuilder), [DynamicFeatureVariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/DynamicFeatureVariantBuilder), [LibraryVariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/LibraryVariantBuilder) \n\n|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [ApplicationVariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/ApplicationVariantBuilder) | Application specific variant object that contains properties that will determine the variant's build flow. |\n| [DynamicFeatureVariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/DynamicFeatureVariantBuilder) | |\n| [LibraryVariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/LibraryVariantBuilder) | [VariantBuilder](/reference/tools/gradle-api/7.4/com/android/build/api/variant/VariantBuilder) type for library projects |\n\n*** ** * ** ***\n\nInterface that mark the potential existence of test fixtures associated with a variant.\n\nSummary\n-------\n\n| ### Public properties ||\n|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enableTestFixtures](/reference/tools/gradle-api/7.4/com/android/build/api/variant/HasTestFixturesBuilder#enableTestFixtures()) Set to `true` if the variant's has test fixtures, `false` otherwise. |\n\nPublic properties\n-----------------\n\n### enableTestFixtures\n\n```\nvar 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](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/TestFixtures#enable()) value that is set through the extension via [com.android.build.api.dsl.TestedExtension.testFixtures](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/TestedExtension#testFixtures(kotlin.Function1))."]]