Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. dependencies {
  2.  
  3. def androidXTestCoreVersion = '1.2.0'
  4. def androidXTestExtKotlinRunnerVersion = '1.1.1'
  5. def androidXTestRulesVersion = '1.2.0-beta01'
  6. def archTestingVersion = '2.0.0'
  7. def coroutinesVersion = '1.2.1'
  8. def daggerVersion = '2.23.2'
  9. def espressoVersion = '3.2.0-beta01'
  10. def hamcrestVersion = '1.3'
  11. def junitVersion = '4.12'
  12. def mockkVersion = '1.9.2'
  13. def robolectricVersion = '4.3-beta-1'
  14. def roomVersion = '2.1.0'
  15. def truthVersion = '0.44'
  16. def appCompatVersion = '1.0.2'
  17. def materialVersion = '1.0.0'
  18.  
  19. // Dependencies for local unit tests
  20. testImplementation "junit:junit:$junitVersion"
  21. testImplementation "io.mockk:mockk:$mockkVersion"
  22. testImplementation "org.hamcrest:hamcrest-all:$hamcrestVersion"
  23. testImplementation "androidx.arch.core:core-testing:$archTestingVersion"
  24. testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
  25. testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
  26. testImplementation "org.robolectric:robolectric:$robolectricVersion"
  27. testImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
  28. testImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
  29. testImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
  30. testImplementation "com.google.truth:truth:$truthVersion"
  31.  
  32. // Dependencies for Android unit tests
  33. androidTestImplementation "junit:junit:$junitVersion"
  34. androidTestImplementation "io.mockk:mockk-android:$mockkVersion"
  35. androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
  36.  
  37. // AndroidX Test - JVM testing
  38. testImplementation "androidx.test:core-ktx:$androidXTestCoreVersion"
  39. testImplementation "androidx.test.ext:junit-ktx:$androidXTestExtKotlinRunnerVersion"
  40. testImplementation "androidx.test:rules:$androidXTestRulesVersion"
  41.  
  42. // AndroidX Test - Instrumented testing
  43. androidTestImplementation "androidx.test:core-ktx:$androidXTestCoreVersion"
  44. androidTestImplementation "androidx.test.ext:junit-ktx:$androidXTestExtKotlinRunnerVersion"
  45. androidTestImplementation "androidx.test:rules:$androidXTestRulesVersion"
  46. androidTestImplementation "androidx.room:room-testing:$roomVersion"
  47. androidTestImplementation "androidx.arch.core:core-testing:$archTestingVersion"
  48. androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
  49. androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
  50. androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
  51. androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espressoVersion"
  52. androidTestImplementation "org.robolectric:annotations:$robolectricVersion"
  53. implementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
  54.  
  55. // Resolve conflicts between main and test APK:
  56. androidTestImplementation "androidx.annotation:annotation:$androidXAnnotations"
  57. androidTestImplementation "androidx.legacy:legacy-support-v4:$androidXLegacySupport"
  58. androidTestImplementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
  59. androidTestImplementation "androidx.appcompat:appcompat:$appCompatVersion"
  60. androidTestImplementation "com.google.android.material:material:$materialVersion"
  61.  
  62. // Using Dagger in androidTest and Robolectric too
  63. kaptAndroidTest "com.google.dagger:dagger-compiler:$daggerVersion"
  64. kaptTest "com.google.dagger:dagger-compiler:$daggerVersion"
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement