Stay organized with collections
Save and categorize content based on your preferences.
GeneratesTestApk
interface GeneratesTestApk : GeneratesApk
Known Indirect Subclasses
|
Summary
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# GeneratesTestApk\n================\n\n```\ninterface GeneratesTestApk : GeneratesApk\n```\n\n|-----------------------------------------------------|\n| [com.android.build.api.variant.GeneratesTestApk](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AndroidTest](/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest), [TestVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant) |------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------| | [AndroidTest](/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest) | Properties for the android test Variant of a module. | | [TestVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant) | [Variant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant) for test-only modules. | |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [AndroidTest](../component/AndroidTest.html#) |-----------------------------------------------|--------| | [AndroidTest](../component/AndroidTest.html#) | \u003cbr /\u003e | |\n\nSummary\n-------\n\n| ### Properties ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [functionalTest](#functionalTest:org.gradle.api.provider.Property) The functionalTest value to use to run the tests. |\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [handleProfiling](#handleProfiling:org.gradle.api.provider.Property) The handleProfiling value to use to run the tests. |\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\\\u003e | [instrumentationRunner](#instrumentationRunner:org.gradle.api.provider.Property) The instrumentationRunner to use to run the tests. |\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?\\\u003e | [testLabel](#testLabel:org.gradle.api.provider.Property) The test label. |\n\n| ### Inherited properties ||\n|---|---|\n| From class [GeneratesApk](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AndroidResources](/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidResources) | [androidResources](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#androidResources:com.android.build.api.variant.AndroidResources) Variant's android resources processing configuration, initialized by the corresponding global DSL element. \u003cbr /\u003e | | [Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\u003e | [applicationId](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#applicationId:org.gradle.api.provider.Provider) Variant's application ID as present in the final manifest file of the APK. \u003cbr /\u003e | | [ApkPackaging](/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApkPackaging) | [packaging](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#packaging:com.android.build.api.variant.ApkPackaging) Variant's packagingOptions, initialized by the corresponding global DSL element. \u003cbr /\u003e | | [Renderscript](/reference/tools/gradle-api/7.0/com/android/build/api/variant/Renderscript)? | [renderscript](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#renderscript:com.android.build.api.variant.Renderscript) Variant specific settings for the renderscript compiler. This will return null when [com.android.build.api.dsl.BuildFeatures.renderScript](../dsl/BuildFeatures.html#renderScript:kotlin.Boolean) is false. \u003cbr /\u003e | ||\n\nProperties\n----------\n\n### functionalTest\n\n```\nabstract val functionalTest: Property\u003cBoolean\u003e\n```\n\nThe functionalTest value to use to run the tests. \n\n### handleProfiling\n\n```\nabstract val handleProfiling: Property\u003cBoolean\u003e\n```\n\nThe handleProfiling value to use to run the tests. \n\n### instrumentationRunner\n\n```\nabstract val instrumentationRunner: Property\u003cString\u003e\n```\n\nThe instrumentationRunner to use to run the tests. \n\n### testLabel\n\n```\nabstract val testLabel: Property\u003cString?\u003e\n```\n\nThe test label."]]