1) created a new build flavor for espresso tests

2) create a new source set full of espresso tests
3) updated proguard-testing.pro
4) added test device numbers to .gitignore

// FREEBIE
This commit is contained in:
Rhodey Orbits
2015-05-25 20:59:07 -07:00
committed by Moxie Marlinspike
parent 6a1bbedae8
commit 7cc2941053
33 changed files with 2280 additions and 1 deletions

View File

@@ -78,7 +78,9 @@ dependencies {
androidTestCompile ('com.squareup.assertj:assertj-android:1.0.0') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
androidTestCompile 'com.android.support.test:runner:0.2'
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.1') {
exclude group: 'javax.inject'
}
}
dependencyVerification {
@@ -144,6 +146,13 @@ android {
buildConfigField "String", "PUSH_URL", "\"https://textsecure-service.whispersystems.org\""
}
productFlavors {
base { }
espresso {
testInstrumentationRunner "org.thoughtcrime.securesms.TextSecureWakingTestRunner"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
@@ -201,9 +210,16 @@ android {
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
espresso {
manifest.srcFile 'test/espresso/AndroidManifest.xml'
}
androidTest {
java.srcDirs = ['test/androidTest/java']
}
androidTestEspresso {
java.srcDirs = ['test/androidTestEspresso/java']
res.srcDirs = ['test/androidTestEspresso/res']
}
}
lintOptions {