Skip to content
Snippets Groups Projects
Commit 2c44b57d authored by Habib Kazemi's avatar Habib Kazemi Committed by Geoffrey Métais
Browse files

Add android test orchestrator


Signed-off-by: default avatarGeoffrey Métais <geoffrey.metais@gmail.com>
parent 7a12fc43
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ ext {
compileSdkVersion = 26
junitVersion = '4.12'
espressoVersion = '3.0.1'
supportTest = '1.0.2'
minSdkVersion = 17
targetSdkVersion = 26
versionName = '3.0.13'
......
......@@ -47,6 +47,10 @@ android {
resValue "string", "build_vlc_revision", vlcRevision()
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// The following argument makes the Android Test Orchestrator run its
// "pm clear" command after each test invocation. This command ensures
// that the app's state is completely cleared between tests.
testInstrumentationRunnerArguments clearPackageData: 'true'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
......@@ -68,6 +72,10 @@ android {
}
}
testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
}
signingConfigs {
release {
/*
......@@ -225,6 +233,8 @@ dependencies {
androidTestImplementation "android.arch.persistence.room:testing:$rootProject.ext.roomVersion"
testImplementation "android.arch.core:core-testing:$rootProject.ext.archVersion"
androidTestImplementation "android.arch.core:core-testing:$rootProject.ext.archVersion"
androidTestImplementation "com.android.support.test:runner:$rootProject.ext.supportTest"
androidTestUtil "com.android.support.test:orchestrator:$rootProject.ext.supportTest"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment