Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dependencies {
- def androidXTestCoreVersion = '1.2.0'
- def androidXTestExtKotlinRunnerVersion = '1.1.1'
- def androidXTestRulesVersion = '1.2.0-beta01'
- def archTestingVersion = '2.0.0'
- def coroutinesVersion = '1.2.1'
- def daggerVersion = '2.23.2'
- def espressoVersion = '3.2.0-beta01'
- def hamcrestVersion = '1.3'
- def junitVersion = '4.12'
- def mockkVersion = '1.9.2'
- def robolectricVersion = '4.3-beta-1'
- def roomVersion = '2.1.0'
- def truthVersion = '0.44'
- def appCompatVersion = '1.0.2'
- def materialVersion = '1.0.0'
- // Dependencies for local unit tests
- testImplementation "junit:junit:$junitVersion"
- testImplementation "io.mockk:mockk:$mockkVersion"
- testImplementation "org.hamcrest:hamcrest-all:$hamcrestVersion"
- testImplementation "androidx.arch.core:core-testing:$archTestingVersion"
- testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
- testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
- testImplementation "org.robolectric:robolectric:$robolectricVersion"
- testImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
- testImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
- testImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
- testImplementation "com.google.truth:truth:$truthVersion"
- // Dependencies for Android unit tests
- androidTestImplementation "junit:junit:$junitVersion"
- androidTestImplementation "io.mockk:mockk-android:$mockkVersion"
- androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
- // AndroidX Test - JVM testing
- testImplementation "androidx.test:core-ktx:$androidXTestCoreVersion"
- testImplementation "androidx.test.ext:junit-ktx:$androidXTestExtKotlinRunnerVersion"
- testImplementation "androidx.test:rules:$androidXTestRulesVersion"
- // AndroidX Test - Instrumented testing
- androidTestImplementation "androidx.test:core-ktx:$androidXTestCoreVersion"
- androidTestImplementation "androidx.test.ext:junit-ktx:$androidXTestExtKotlinRunnerVersion"
- androidTestImplementation "androidx.test:rules:$androidXTestRulesVersion"
- androidTestImplementation "androidx.room:room-testing:$roomVersion"
- androidTestImplementation "androidx.arch.core:core-testing:$archTestingVersion"
- androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
- androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
- androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
- androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espressoVersion"
- androidTestImplementation "org.robolectric:annotations:$robolectricVersion"
- implementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
- // Resolve conflicts between main and test APK:
- androidTestImplementation "androidx.annotation:annotation:$androidXAnnotations"
- androidTestImplementation "androidx.legacy:legacy-support-v4:$androidXLegacySupport"
- androidTestImplementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
- androidTestImplementation "androidx.appcompat:appcompat:$appCompatVersion"
- androidTestImplementation "com.google.android.material:material:$materialVersion"
- // Using Dagger in androidTest and Robolectric too
- kaptAndroidTest "com.google.dagger:dagger-compiler:$daggerVersion"
- kaptTest "com.google.dagger:dagger-compiler:$daggerVersion"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement