# GeneratesTestApk

# GeneratesTestApk

<br />

```
interface GeneratesTestApk : GeneratesApk
```

<br />

Known direct subclasses  
[AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/AndroidTest),[TestVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/TestVariant)  

|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.4/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.4/com/android/build/api/variant/TestVariant) | [Variant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Variant)for test-only modules. |

*** ** * ** ***

## Summary

|                                                                                                                                                                                       ### Public properties                                                                                                                                                                                        ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.4/com/android/build/api/variant/GeneratesTestApk#functionalTest()) The functionalTest value to use to run the tests.                |
| [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.4/com/android/build/api/variant/GeneratesTestApk#handleProfiling()) The handleProfiling value to use to run the tests.             |
| [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.4/com/android/build/api/variant/GeneratesTestApk#instrumentationRunner()) The instrumentationRunner to use to run the tests. |
| [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.4/com/android/build/api/variant/GeneratesTestApk#testLabel()) The test label.                                                            |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[com.android.build.api.variant.GeneratesApk](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/GeneratesApk) |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AndroidResources](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/AndroidResources)                                                 | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/GeneratesApk#androidResources()) Variant's android resources processing configuration, initialized by the corresponding global DSL element. | | [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.4/com/android/build/api/variant/GeneratesApk#applicationId()) Variant's application ID as present in the final manifest file of the APK.                                       | | [ApkPackaging](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ApkPackaging)                                                         | [packaging](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/GeneratesApk#packaging()) Variant's packagingOptions, initialized by the corresponding global DSL element.                                         | | [Renderscript](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Renderscript)`?`                                                      | [renderscript](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/GeneratesApk#renderscript()) Variant specific settings for the renderscript compiler.                                                           | | [AndroidVersion](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/AndroidVersion)                                                     | [targetSdkVersion](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/GeneratesApk#targetSdkVersion()) Target SDK version for this variant.                                                                       | |

## Public properties

### functionalTest

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

The functionalTest value to use to run the tests.  

### handleProfiling

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

The handleProfiling value to use to run the tests.  

### instrumentationRunner

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

The instrumentationRunner to use to run the tests.  

### testLabel

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

The test label.