# AndroidTest

# AndroidTest

```
interface AndroidTest : TestComponent, AndroidTest
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.component.AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/AndroidTest#) |

## Summary

| ### Inherited functions ||
|---|---|
| From class[HasAndroidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources.html#) |-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key.html#) | [makeResValueKey](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources.html#makeResValueKey(kotlin.String,%20kotlin.String))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br /> Make a[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key.html#)to interact with[resValues](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources.html#resValues:org.gradle.api.provider.MapProperty)'s[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html) <br /> | ||

| ### Inherited properties ||
|---|---|
| From class[GeneratesApk](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk.html#) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AndroidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidResources.html#)                                       | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk.html#androidResources:com.android.build.api.variant.AndroidResources) <br /> Variant's android resources processing configuration, initialized by the corresponding global DSL element. <br />                                                                                                                                                                    | | [Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> | [applicationId](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk.html#applicationId:org.gradle.api.provider.Provider) <br /> Variant's application ID as present in the final manifest file of the APK. <br />                                                                                                                                                                                                                        | | [ApkPackaging](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApkPackaging.html#)                                               | [packaging](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk.html#packaging:com.android.build.api.variant.ApkPackaging) <br /> Variant's packagingOptions, initialized by the corresponding global DSL element. <br />                                                                                                                                                                                                                | | [Renderscript](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Renderscript.html#)?                                              | [renderscript](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk.html#renderscript:com.android.build.api.variant.Renderscript) <br /> Variant specific settings for the renderscript compiler. This will return null when[com.android.build.api.dsl.BuildFeatures.renderScript](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/dsl/BuildFeatures.html#renderScript:kotlin.Boolean)is false. <br /> | ||
| From class[AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#) |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>                                                                                                                                                                                                                                                | [applicationId](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#applicationId:org.gradle.api.provider.Property) <br /> Variant's application ID as present in the final manifest file of the APK. <br />                                                                                                                                                                                                                                                                                              | | [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),` `out` `[BuildConfigField](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/BuildConfigField.html#)<out` `[Serializable](http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html)>> | [buildConfigFields](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#buildConfigFields:org.gradle.api.provider.MapProperty) <br /> Variant's[BuildConfigField](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/BuildConfigField.html#)which will be generated in the BuildConfig class. <br />                                                                                                                                                              | | [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>                                                                                                                                                      | [manifestPlaceholders](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#manifestPlaceholders:org.gradle.api.provider.MapProperty) <br /> [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)of the variant's manifest placeholders. Placeholders are organized with a key and a value. The value is a[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)that will be used as is in the merged manifest. <br />                | | [Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>                                                                                                                                                                                                                                                | [namespace](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#namespace:org.gradle.api.provider.Provider) <br /> The namespace of the generated R and BuildConfig classes. Also, the namespace used to resolve any relative class names that are declared in the AndroidManifest.xml. This value supersedes any value specified by the`package`attribute in the source AndroidManifest.xml, but doing a 'get' on this property will not retrieve the value specified in the AndroidManifest.xml. <br /> | | [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)<[RegularFile](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html)>                                                                                                                                                                                                                             | [proguardFiles](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#proguardFiles:org.gradle.api.provider.ListProperty) <br /> List of proguard configuration files for this variant. The list is initialized from the corresponding DSL element, and cannot be queried at configuration time. At configuration time, you can only add new elements to the list. <br />                                                                                                                                   | | [SigningConfig](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/SigningConfig.html#)?                                                                                                                                                                                                                                                                                           | [signingConfig](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest.html#signingConfig:com.android.build.api.variant.SigningConfig) <br /> Variant's signingConfig, initialized by the corresponding DSL element. <br />                                                                                                                                                                                                                                                                                       | ||
| From class[GeneratesTestApk](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk.html#) |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)<[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)> | [functionalTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk.html#functionalTest:org.gradle.api.provider.Property) <br /> The functionalTest value to use to run the tests. <br />                | | [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)<[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)> | [handleProfiling](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk.html#handleProfiling:org.gradle.api.provider.Property) <br /> The handleProfiling value to use to run the tests. <br />             | | [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>   | [instrumentationRunner](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk.html#instrumentationRunner:org.gradle.api.provider.Property) <br /> The instrumentationRunner to use to run the tests. <br /> | | [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?>  | [testLabel](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk.html#testLabel:org.gradle.api.provider.Property) <br /> The test label. <br />                                                            | ||
| From class[HasAndroidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources.html#) |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)<[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)>                                                                                                                                                                           | [pseudoLocalesEnabled](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources.html#pseudoLocalesEnabled:org.gradle.api.provider.Property) <br /> Variant's is pseudo locales enabled, initialized by the corresponding DSL elements. <br />                                                 | | [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)<[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key.html#),` `[ResValue](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.html#)> | [resValues](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources.html#resValues:org.gradle.api.provider.MapProperty) <br /> Variant's[ResValue](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.html#)which will be generated. <br /> | ||