Browse Source

Add android test orchestrator

Signed-off-by: Geoffrey Métais <geoffrey.metais@gmail.com>
4.0-glrenderer
Habib Kazemi 8 years ago
committed by Geoffrey Métais
parent
commit
2c44b57d8f
  1. 1
      build.gradle
  2. 10
      vlc-android/build.gradle

1
build.gradle

@ -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'

10
vlc-android/build.gradle

@ -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"
}

Loading…
Cancel
Save