Workaround an issue that espresso tests were not run on devices before lollipop

This commit is contained in:
ligi 2015-03-26 04:20:16 +01:00
parent bbf1fb260e
commit 09054be8e0

View file

@ -7,7 +7,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:1.1.3'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
classpath('com.stanfy.spoon:spoon-gradle-plugin:1.0.0')
classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.0.1'
}
}
@ -81,12 +81,20 @@ android {
}
}
configurations {
// http://qathread.blogspot.de/2015/02/discovering-espresso-for-android.html
androidTestCompile.exclude group: 'com.android.support', module: 'support-v4'
}
dependencies {
androidTestCompile 'com.android.support:support-v4:22.0.0'
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
androidTestCompile 'com.squareup.spoon:spoon-client:1.1.2'
androidTestCompile 'com.android.support:support-annotations:22.0.0'
androidTestCompile 'com.squareup.spoon:spoon-client:1.1.8'
androidTestCompile 'com.squareup.assertj:assertj-android:1.0.0'