GeneratesTestApk

Added in 7.0.0

interface GeneratesTestApk : GeneratesApk

Known direct subclasses
AndroidTest

Model for Android Test components that contains build-time properties

TestVariant

Model for test components that only contains build-time properties.


Build-time properties for Component that produce test APKs.

Summary

Public properties

Property<Boolean>

The functionalTest value to use to run the tests.

Property<Boolean>

The handleProfiling value to use to run the tests.

Property<String>

The instrumentationRunner to use to run the tests.

MapProperty<StringString>

The instrumentationRunnerArguments to use to run the tests.

Property<String?>

The test label.

Inherited properties

From com.android.build.api.variant.GeneratesApk
AndroidResources

Variant's android resources processing configuration, initialized by the corresponding global DSL element.

Provider<String>

Variant's application ID as present in the final manifest file of the APK.

Dexing

Variant's specific dexing options

ApkPackaging

Variant's packagingOptions, initialized by the corresponding global DSL element.

Renderscript?

Variant specific settings for the renderscript compiler.

AndroidVersion

Target SDK version for this variant.

AndroidVersion

This property is deprecated. Replaced with targetSdk, will be removed in 9.0

Public properties

functionalTest

Added in 7.0.0
val functionalTestProperty<Boolean>

The functionalTest value to use to run the tests.

handleProfiling

Added in 7.0.0
val handleProfilingProperty<Boolean>

The handleProfiling value to use to run the tests.

instrumentationRunner

Added in 7.0.0
val instrumentationRunnerProperty<String>

The instrumentationRunner to use to run the tests.

instrumentationRunnerArguments

Added in 8.2.0-beta03
val instrumentationRunnerArgumentsMapProperty<StringString>

The instrumentationRunnerArguments to use to run the tests.

testLabel

Added in 7.0.0
val testLabelProperty<String?>

The test label.