Stay organized with collections
Save and categorize content based on your preferences.
UnitTestProperties
@Incubating interface UnitTestProperties : TestComponentProperties
Properties for the unit test Variant of a module
Summary
Inherited properties
|
|
From class ComponentIdentity
String? |
buildType
Build Type name, might be replaced with access to locked DSL object once ready
|
String |
flavorName
The multi-flavor name of the variant.
This does not include the build type. If no flavors are present, this is an empty string.
The full name of the variant is queried via getName
|
List<Pair<String, String>> |
productFlavors
List of flavor names, might be replaced with access to locked DSL objects once ready
The order is properly sorted based on the associated dimension order
|
|
|
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,["# UnitTestProperties\n==================\n\n```\n@Incubating interface UnitTestProperties : TestComponentProperties\n```\n\n|---------------------------------------------------------|\n| [com.android.build.api.component.UnitTestProperties](#) |\n\nProperties for the unit test Variant of a module\n\nSummary\n-------\n\n| ### Inherited properties ||\n|---|---|\n| From class [ComponentProperties](/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentProperties) |------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Artifacts](../artifact/Artifacts.html#) | [artifacts](/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentProperties#artifacts:com.android.build.api.artifact.Artifacts) Access to the variant's buildable artifacts for build customization. \u003cbr /\u003e | ||\n| From class [ComponentIdentity](/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity) |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [buildType](/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity#buildType:kotlin.String) Build Type name, might be replaced with access to locked DSL object once ready \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [flavorName](/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity#flavorName:kotlin.String) The multi-flavor name of the variant. This does not include the build type. If no flavors are present, this is an empty string. The full name of the variant is queried via [getName](https://docs.gradle.org/current/javadoc/org/gradle/api/Named.html#getName()) \u003cbr /\u003e | | [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)\u003c[Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\u003e\u003e | [productFlavors](/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity#productFlavors:kotlin.collections.List) List of flavor names, might be replaced with access to locked DSL objects once ready The order is properly sorted based on the associated dimension order \u003cbr /\u003e | ||\n| From class [TestComponentProperties](/reference/tools/gradle-api/4.1/com/android/build/api/component/TestComponentProperties) |---------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [VariantProperties](../variant/VariantProperties.html#) | [testedVariant](/reference/tools/gradle-api/4.1/com/android/build/api/component/TestComponentProperties#testedVariant:com.android.build.api.variant.VariantProperties) \u003cbr /\u003e | ||"]]