mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 01:39:49 +00:00
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:

committed by
Moxie Marlinspike

parent
6a1bbedae8
commit
7cc2941053
18
build.gradle
18
build.gradle
@@ -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 {
|
||||
|
Reference in New Issue
Block a user