# GeneratesTestApk

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/GeneratesTestApk.kt+class:com.android.build.api.variant.GeneratesTestApk) Added in 7.0.0


```
interface GeneratesTestApk : GeneratesApk
```

<br />

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

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidTest` | Model for Android Test components that contains build-time properties |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceTest` | Model for Device Test components that contains build-time properties |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/TestVariant` | Model for test components that only contains build-time properties. |

Known indirect subclasses [AndroidTest](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidTest)

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidTest` | Model for Android Test components that contains build-time properties |

*** ** * ** ***

Build-time properties for `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Component` that produce test APKs.

## Summary

| ### Public properties |
|---|---|
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesTestApk#functionalTest()` The functionalTest value to use to run the tests. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesTestApk#handleProfiling()` The handleProfiling value to use to run the tests. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesTestApk#instrumentationRunner()` The instrumentationRunner to use to run the tests. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesTestApk#instrumentationRunnerArguments()` The instrumentationRunnerArguments to use to run the tests. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesTestApk#testLabel()` The test label, or "" if none defined. |

### Inherited properties

From [com.android.build.api.variant.GeneratesApk](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk) `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidResources` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#androidResources()`

Variant's android resources processing configuration, initialized by the corresponding global DSL element.
`https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#applicationId()`

Variant's application ID as present in the final manifest file of the APK.
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Dexing` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#dexing()`

Variant's specific dexing options
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidVersion` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#minSdk()`

Min SDK version for this variant
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ApkOutputProviders` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#outputProviders()`

Provides access to built artifacts output(e.g. APK) produced by this Variant.
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ApkPackaging` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#packaging()`

Variant's packagingOptions, initialized by the corresponding global DSL element.
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Renderscript?` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#renderscript()`

Variant specific settings for the renderscript compiler.
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidVersion` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#targetSdk()`

Target SDK version for this variant.

## Public properties

### functionalTest

Added in 7.0.0

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

The functionalTest value to use to run the tests.

### handleProfiling

Added in 7.0.0

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

The handleProfiling value to use to run the tests.

### instrumentationRunner

Added in 7.0.0

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

The instrumentationRunner to use to run the tests.

### instrumentationRunnerArguments

Added in 8.2.0

```
val instrumentationRunnerArguments: MapProperty<String, String>
```

The instrumentationRunnerArguments to use to run the tests.

### testLabel

Added in 7.0.0

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

The test label, or "" if none defined.