This is the configuration I used to get the tests for my Android project to run. This works with Android Studio 0.8 (Gradle 1.12).
The project uses notably guava
, mockito
, dagger
, assertj
, awaitility
, auto
, retrofit
/ okhttp
and mockwebserver
and also needs to inject some tests with test-specific modules.
Given the necessity to inject tests and the current lack of support for transitive dependencies for the androidTestXxx
scopes, the dependency settings are somewhat tricky to get to work properly.
compile 'com.android.support:appcompat-v7:20'
compile 'com.google.code.findbugs:jsr305:3.0.0'
compile 'com.google.guava:guava:18.0'