Stay organized with collections
Save and categorize content based on your preferences.
TestRunData
@Incubating interface TestRunData
The general inputs associated with a given test run.
Summary
Public properties |
List<String> |
Additional APK installation options.
|
Directory? |
Output directory to contain any additional test results.
|
Directory |
The output directory to contain code coverage results
|
String |
The name of the managed device from the DSL associated with this test run.
|
Set<File> |
Helper APKs for the given test run.
|
Directory |
The output directory to contain test results
|
String |
The path to the Gradle project for this test.
|
StaticTestData |
The test data associated with this test run, including the Test APK and APK under test.
|
String |
A unique id for the test-run.
|
String |
The full name of the variant under test.
|
Public properties
deviceName
val deviceName: String
The name of the managed device from the DSL associated with this test run.
testData
val testData: StaticTestData
The test data associated with this test run, including the Test APK and APK under test.
testRunId
val testRunId: String
A unique id for the test-run.
This is based upon the managed device name, variant, and module that this task belongs to.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# TestRunData\n===========\n\n\n```\n@Incubating interface TestRunData\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe general inputs associated with a given test run.\n\nSummary\n-------\n\n| ### Public properties ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`\u003c`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`\u003e` | [additionalInstallOptions](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#additionalInstallOptions()) Additional APK installation options. |\n| [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html)`?` | [additionalTestOutputDir](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#additionalTestOutputDir()) Output directory to contain any additional test results. |\n| [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html) | [coverageOutputDirectory](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#coverageOutputDirectory()) The output directory to contain code coverage results |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [deviceName](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#deviceName()) The name of the managed device from the DSL associated with this test run. |\n| [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`\u003c`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`\u003e` | [helperApks](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#helperApks()) Helper APKs for the given test run. |\n| [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html) | [outputDirectory](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#outputDirectory()) The output directory to contain test results |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [projectPath](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#projectPath()) The path to the Gradle project for this test. |\n| [StaticTestData](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/StaticTestData) | [testData](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#testData()) The test data associated with this test run, including the Test APK and APK under test. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [testRunId](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#testRunId()) A unique id for the test-run. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [variantName](/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#variantName()) The full name of the variant under test. |\n\nPublic properties\n-----------------\n\n### additionalInstallOptions\n\n```\nval additionalInstallOptions: List\u003cString\u003e\n```\n\nAdditional APK installation options. \n\n### additionalTestOutputDir\n\n```\nval additionalTestOutputDir: Directory?\n```\n\nOutput directory to contain any additional test results. \n\n### coverageOutputDirectory\n\n```\nval coverageOutputDirectory: Directory\n```\n\nThe output directory to contain code coverage results \n\n### deviceName\n\n```\nval deviceName: String\n```\n\nThe name of the managed device from the DSL associated with this test run. \n\n### helperApks\n\n```\nval helperApks: Set\u003cFile\u003e\n```\n\nHelper APKs for the given test run. \n\n### outputDirectory\n\n```\nval outputDirectory: Directory\n```\n\nThe output directory to contain test results \n\n### projectPath\n\n```\nval projectPath: String\n```\n\nThe path to the Gradle project for this test. \n\n### testData\n\n```\nval testData: StaticTestData\n```\n\nThe test data associated with this test run, including the Test APK and APK under test. \n\n### testRunId\n\n```\nval testRunId: String\n```\n\nA unique id for the test-run.\n\nThis is based upon the managed device name, variant, and module that this task belongs to. \n\n### variantName\n\n```\nval variantName: String\n```\n\nThe full name of the variant under test."]]