@@ -33,8 +33,6 @@ android {
3333 versionCode = 1
3434 versionName = " 1.0"
3535
36- testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
37-
3836 resourceConfigurations + = listOf (" en" , " nl" , " ja" )
3937 }
4038
@@ -43,45 +41,16 @@ android {
4341 applicationIdSuffix = " .dev"
4442 isMinifyEnabled = false
4543 proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro" )
46- testProguardFiles(
47- getDefaultProguardFile(" proguard-android.txt" ),
48- " proguardTest-rules.pro"
49- )
50- enableUnitTestCoverage = true
51- enableAndroidTestCoverage = true
5244 }
5345
5446 getByName(" release" ) {
5547 isMinifyEnabled = true
5648 isShrinkResources = true
5749 proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro" )
58- testProguardFiles(
59- getDefaultProguardFile(" proguard-android.txt" ),
60- " proguardTest-rules.pro"
61- )
6250 signingConfig = signingConfigs.getByName(" release" )
6351 }
6452 }
6553
66- // Always show the result of every unit test, even if it passes.
67- testOptions.unitTests {
68- isIncludeAndroidResources = true
69-
70- all { test ->
71- with (test) {
72- testLogging {
73- events = setOf (
74- org.gradle.api.tasks.testing.logging.TestLogEvent .PASSED ,
75- org.gradle.api.tasks.testing.logging.TestLogEvent .SKIPPED ,
76- org.gradle.api.tasks.testing.logging.TestLogEvent .FAILED ,
77- org.gradle.api.tasks.testing.logging.TestLogEvent .STANDARD_OUT ,
78- org.gradle.api.tasks.testing.logging.TestLogEvent .STANDARD_ERROR ,
79- )
80- }
81- }
82- }
83- }
84-
8554 buildFeatures {
8655 compose = true
8756 buildConfig = true
@@ -163,52 +132,4 @@ dependencies {
163132
164133 debugImplementation(composeBom)
165134 debugImplementation(libs.androidx.compose.ui.tooling.core)
166- debugImplementation(libs.androidx.compose.ui.test.manifest)
167-
168- // Dependencies for local unit tests
169- testImplementation(composeBom)
170- testImplementation(libs.junit4)
171- testImplementation(libs.androidx.archcore.testing)
172- testImplementation(libs.kotlinx.coroutines.android)
173- testImplementation(libs.kotlinx.coroutines.test)
174- testImplementation(libs.androidx.navigation.testing)
175- testImplementation(libs.androidx.test.espresso.core)
176- testImplementation(libs.androidx.test.espresso.contrib)
177- testImplementation(libs.androidx.test.espresso.intents)
178- testImplementation(libs.google.truth)
179- testImplementation(libs.androidx.compose.ui.test.junit)
180-
181- // JVM tests - Hilt
182- testImplementation(libs.hilt.android.testing)
183- kspTest(libs.hilt.compiler)
184-
185- // Dependencies for Android unit tests
186- androidTestImplementation(composeBom)
187- androidTestImplementation(libs.junit4)
188- androidTestImplementation(libs.kotlinx.coroutines.test)
189- androidTestImplementation(libs.androidx.compose.ui.test.junit)
190-
191- // AndroidX Test - JVM testing
192- testImplementation(libs.androidx.test.core.ktx)
193- testImplementation(libs.androidx.test.ext)
194- testImplementation(libs.androidx.test.rules)
195- testImplementation(project(" :shared-test" ))
196-
197- // AndroidX Test - Instrumented testing
198- androidTestImplementation(libs.androidx.test.core.ktx)
199- androidTestImplementation(libs.androidx.test.ext)
200- androidTestImplementation(libs.androidx.test.rules)
201- androidTestImplementation(libs.room.testing)
202- androidTestImplementation(libs.androidx.archcore.testing)
203- androidTestImplementation(libs.androidx.navigation.testing)
204- androidTestImplementation(libs.androidx.test.espresso.core)
205- androidTestImplementation(libs.androidx.test.espresso.contrib)
206- androidTestImplementation(libs.androidx.test.espresso.intents)
207- androidTestImplementation(libs.androidx.test.espresso.idling.resources)
208- androidTestImplementation(libs.androidx.test.espresso.idling.concurrent)
209- androidTestImplementation(project(" :shared-test" ))
210-
211- // AndroidX Test - Hilt testing
212- androidTestImplementation(libs.hilt.android.testing)
213- kspAndroidTest(libs.hilt.compiler)
214135}
0 commit comments