# TestRunData

# TestRunData

<br />

```
@Incubating interface TestRunData
```

<br />

*** ** * ** ***

The general inputs associated with a given test run.

## Summary

|                                                                                                                                                                                                      ### Public properties                                                                                                                                                                                                      ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`     | [additionalInstallOptions](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#additionalInstallOptions()) Additional APK installation options.                    |
| [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html)`?`                                                                                         | [additionalTestOutputDir](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#additionalTestOutputDir()) Output directory to contain any additional test results.  |
| [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html)                                                                                            | [coverageOutputDirectory](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#coverageOutputDirectory()) The output directory to contain code coverage results     |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                   | [deviceName](https://developer.android.com/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.          |
| [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`>` | [helperApks](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#helperApks()) Helper APKs for the given test run.                                                 |
| [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html)                                                                                            | [outputDirectory](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#outputDirectory()) The output directory to contain test results                              |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                   | [projectPath](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#projectPath()) The path to the Gradle project for this test.                                     |
| [StaticTestData](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/StaticTestData)                                  | [testData](https://developer.android.com/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. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                   | [testRunId](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#testRunId()) A unique id for the test-run.                                                         |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                   | [variantName](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/instrumentation/manageddevice/TestRunData#variantName()) The full name of the variant under test.                                          |

## Public properties

### additionalInstallOptions

```
val additionalInstallOptions: List<String>
```

Additional APK installation options.  

### additionalTestOutputDir

```
val additionalTestOutputDir: Directory?
```

Output directory to contain any additional test results.  

### coverageOutputDirectory

```
val coverageOutputDirectory: Directory
```

The output directory to contain code coverage results  

### deviceName

```
val deviceName: String
```

The name of the managed device from the DSL associated with this test run.  

### helperApks

```
val helperApks: Set<File>
```

Helper APKs for the given test run.  

### outputDirectory

```
val outputDirectory: Directory
```

The output directory to contain test results  

### projectPath

```
val projectPath: String
```

The path to the Gradle project for this test.  

### 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.  

### variantName

```
val variantName: String
```

The full name of the variant under test.