Set up unit test support in Gradle

Summary:
This works now:

```
./gradlew :android:testDebugUnitTest
BUILD SUCCESSFUL in 1s
39 actionable tasks: 39 up-to-date
```

Reviewed By: danielbuechele

Differential Revision: D10101985

fbshipit-source-id: e3d1f17b29652061498d50a9218a94aaebee67e2
This commit is contained in:
Pascal Hartig
2018-09-30 04:06:09 -07:00
committed by Facebook Github Bot
parent 2a4df330b2
commit b756b5490f
2 changed files with 17 additions and 1 deletions

View File

@@ -68,8 +68,10 @@ ext.deps = [
lithoTesting : "com.facebook.litho:litho-testing:$LITHO_VERSION",
// Debugging and testing
guava : 'com.google.guava:guava:20.0',
robolectric : 'org.robolectric:robolectric:3.0',
robolectric : 'org.robolectric:robolectric:3.3',
junit : 'junit:junit:4.12',
hamcrest : 'org.hamcrest:hamcrest-library:1.3',
mockito : 'org.mockito:mockito-core:1.9.5',
stetho : 'com.facebook.stetho:stetho:1.5.0',
okhttp3 : 'com.squareup.okhttp3:okhttp:3.10.0',
leakcanary : 'com.squareup.leakcanary:leakcanary-android:1.6.1',