Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions runner/AndroidTestOrchestratorSample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ This project uses the Gradle build system. You don't need an IDE to build and ex
1. Check out the relevant code:
* The application under test is located in `src/main/java`
* Tests are in `src/androidTest/java`
1. Create the test configuration with a custom runner: `androidx.test.runner.AndroidJUnitRunner`
1. Create the test configuration
* Open *Run* menu | *Edit Configurations*
* Add a new *Android Tests* configuration
* Choose a module
* Add a *Specific instrumentation runner*: `androidx.test.runner.AndroidJUnitRunner`
1. Connect a device or start an emulator
* Turn animations off.
(On your device, under Settings->Developer options disable the following 3 settings: "Window animation scale", "Transition animation scale" and "Animator duration scale")
Expand Down
8 changes: 2 additions & 6 deletions runner/AndroidTestOrchestratorSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ android {
productFlavors {
}

useLibrary 'android.test.runner'

useLibrary 'android.test.base'
useLibrary 'android.test.mock'

testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
Expand All @@ -41,6 +36,7 @@ dependencies {
androidTestImplementation 'androidx.test:core:' + rootProject.coreVersion;
androidTestImplementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion;
androidTestImplementation 'androidx.test:runner:' + rootProject.runnerVersion;
androidTestImplementation 'androidx.test:monitor:' + rootProject.monitorVersion;
androidTestImplementation 'androidx.test.espresso:espresso-core:' + rootProject.espressoVersion;
androidTestUtil 'androidx.test:orchestrator:' + rootProject.runnerVersion;
androidTestUtil 'androidx.test:orchestrator:' + rootProject.orchestratorVersion;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.example.android.testing.androidtestorchestratorsample;

import androidx.test.platform.graphics.HardwareRendererCompat;
import junit.framework.TestSuite;

import org.junit.Before;
Expand Down
12 changes: 7 additions & 5 deletions runner/AndroidTestOrchestratorSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ ext {
buildToolsVersion = "31.0.0"
androidxAnnotationVersion = "1.2.0"
guavaVersion = "30.1.1-android"
coreVersion = "1.4.1-alpha03"
extJUnitVersion = "1.1.4-alpha03"
runnerVersion = "1.4.1-alpha03"
rulesVersion = "1.4.1-alpha03"
espressoVersion = "3.5.0-alpha03"
coreVersion = "1.4.0"
extJUnitVersion = "1.1.3"
runnerVersion = "1.4.0"
monitorVersion = "1.5.0-rc01"
rulesVersion = "1.4.0"
espressoVersion = "3.4.0"
orchestratorVersion = "1.4.1-rc01"
}