So, a new version of Espresso should be out shortly that will be bundled with the Android Support Tools. It will include a new test instrumentation runner and the dependencies should be importable into your Gradle project.
Below shows what you’ll need to do to include the new runner and the dependencies, however, as it’s not out yet the version of androidTestCompile is still TBD. 😦
Can’t wait!
android {
defaultConfig {
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
}
dependencies {
androidTestCompile 'android.support.test:support-lib:tbd'
}
Where can I find out more about using this library?
The project page for Espresso can be found here https://code.google.com/p/android-test-kit/ however, the latest changes that this post talks about aren’t yet released. I too am impatiently waiting for them.