Closed GoogleCodeExporter closed 9 years ago
Hey, thanks for posting this. I believe I have it figured out:
Test Runner:
android {
...
defaultConfig {
...
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
}
Dependencies:
dependencies {
// Hamcrest - kept at 1.1, 1.3 is latest
androidTestCompile 'org.hamcrest:hamcrest-core:1.1'
androidTestCompile 'org.hamcrest:hamcrest-integration:1.1'
androidTestCompile 'org.hamcrest:hamcrest-library:1.1'
androidTestCompile ('com.android.support.test:testing-support-lib:0.1') {
exclude module: 'hamcrest-core'
}
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.0') {
exclude module: 'hamcrest-core'
}
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.0'
androidTestCompile('junit:junit-dep:4.10') {
exclude module: 'hamcrest-core'
}
}
Let me know if this has helped you!
Original comment by jaredsburrows@gmail.com
on 2 Feb 2015 at 5:20
Espresso uses 1.1, so if you were including 1.3, the method signature might
have changed. We will, eventually, upgrade to 1.3 (unfortunately, it's a
breaking API update).
Original comment by vale...@google.com
on 18 Mar 2015 at 5:52
Original comment by vale...@google.com
on 18 Mar 2015 at 5:52
Original issue reported on code.google.com by
mahendra...@impigertech.com
on 22 Jan 2015 at 2:09