Options for running tests.
| Property | Description |
animationsDisabled | Disables animations during instrumented tests. |
execution | Specifies whether to use on-device test orchestration. |
reportDir | Name of the reports directory. |
resultsDir | Name of the results directory. |
unitTests | Configures unit test options. |
| Block | Description |
unitTests | Configures unit test options. |
String execution
Specifies whether to use on-device test orchestration.
If you want to use
Android Test Orchestrator, you need to specify "ANDROID_TEST_ORCHESTRATOR",
as shown below. By default, this property is set to "HOST", which disables
on-device orchestration.
android {
testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
}
}String reportDir
Name of the reports directory.
String resultsDir
Name of the results directory.
UnitTestOptions unitTests
Configures unit test options.
Except as noted, this content is licensed under Apache 2.0.
For details and restrictions, see the Content License.