# GeneratesTestApk

# GeneratesTestApk

```
interface GeneratesTestApk : GeneratesApk
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.variant.GeneratesTestApk](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/GeneratesTestApk#) |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/AndroidTest),[TestVariant](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/TestVariant) |-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| | [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/AndroidTest) | Properties for the android test Variant of a module.                                                                                | | [TestVariant](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/TestVariant) | [Variant](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/Variant)for test-only modules. | |

## Summary

|                                                                                                                                                                                                             ### Properties                                                                                                                                                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[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.1/com/android/build/api/variant/GeneratesTestApk#functionalTest:org.gradle.api.provider.Property) The functionalTest value to use to run the tests.                |
| abstract[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.1/com/android/build/api/variant/GeneratesTestApk#handleProfiling:org.gradle.api.provider.Property) The handleProfiling value to use to run the tests.             |
| abstract[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.1/com/android/build/api/variant/GeneratesTestApk#instrumentationRunner:org.gradle.api.provider.Property) The instrumentationRunner to use to run the tests. |
| abstract[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.1/com/android/build/api/variant/GeneratesTestApk#testLabel:org.gradle.api.provider.Property) The test label.                                                            |

| ### Inherited properties ||
|---|---|
| From class[GeneratesApk](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/GeneratesApk) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AndroidResources](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/AndroidResources)                                             | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/GeneratesApk#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.1/com/android/build/api/variant/GeneratesApk#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.1/com/android/build/api/variant/ApkPackaging)                                                     | [packaging](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/GeneratesApk#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.1/com/android/build/api/variant/Renderscript)?                                                    | [renderscript](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/GeneratesApk#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.1/com/android/build/api/dsl/BuildFeatures.html#renderScript:kotlin.Boolean)is false. <br /> | ||

## Properties

### functionalTest

```
abstract val functionalTest: Property<Boolean>
```

The functionalTest value to use to run the tests.  

### handleProfiling

```
abstract val handleProfiling: Property<Boolean>
```

The handleProfiling value to use to run the tests.  

### instrumentationRunner

```
abstract val instrumentationRunner: Property<String>
```

The instrumentationRunner to use to run the tests.  

### testLabel

```
abstract val testLabel: Property<String?>
```

The test label.