From d370823a10edc1c72667edc891ad402bf270ca0a Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sat, 13 Nov 2021 11:07:42 +0300 Subject: [PATCH] Update test dependencies --- app/build.gradle | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 85147ce..a7b801b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,9 +63,12 @@ dependencies { implementation "com.google.dagger:hilt-android:$hilt_version" kapt "com.google.dagger:hilt-compiler:$hilt_version" + kaptTest "com.google.dagger:hilt-android-compiler:$hilt_version" + testImplementation "com.google.dagger:hilt-android-testing:$hilt_version" // https://github.com/square/retrofit/tags implementation "com.squareup.retrofit2:retrofit:2.9.0" + // https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/tags implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0" @@ -73,6 +76,7 @@ dependencies { def okhttp_version = "4.9.2" implementation "com.squareup.okhttp3:okhttp:$okhttp_version" implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version" + testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp_version" // https://github.com/Kotlin/kotlinx.serialization/releases implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.1" @@ -107,8 +111,18 @@ dependencies { // https://github.com/junit-team/junit4/releases testImplementation "junit:junit:4.13.2" + // https://github.com/Kotlin/kotlinx.coroutines/releases + testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.2" + + // https://github.com/robolectric/robolectric/releases + testImplementation "org.robolectric:robolectric:4.7" + // https://developer.android.com/jetpack/androidx/releases/test - androidTestImplementation "androidx.test.ext:junit:1.1.3" + testImplementation "androidx.test.ext:junit-ktx:1.1.3" + + // https://mvnrepository.com/artifact/com.google.truth/truth + testImplementation "com.google.truth:truth:1.1.3" + // https://developer.android.com/jetpack/androidx/releases/test androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0" } \ No newline at end of file