@@ -62,6 +62,7 @@ android {
6262 buildConfigField " String" , " RAR_PASSWORD" , ' ")(#$1HsD"'
6363 buildConfigField " String" , " API_VERSION" , ' "3"'
6464 resValue " string" , " release_tag" , " release/25.04"
65+ resValue " string" , " sentry_dsn" , " "
6566 }
6667
6768 productFlavors {
@@ -181,6 +182,13 @@ android {
181182 exclude ' META-INF/DEPENDENCIES'
182183 }
183184 namespace ' org.openimis.imisclaims'
185+
186+ testOptions {
187+ unitTests {
188+ includeAndroidResources = true
189+ returnDefaultValues = true
190+ }
191+ }
184192}
185193
186194apollo {
@@ -194,6 +202,13 @@ apollo {
194202 ]
195203}
196204
205+ tasks. withType(Test ). configureEach {
206+ testLogging {
207+ events " passed" , " skipped" , " failed"
208+ exceptionFormat " full"
209+ showStandardStreams = false
210+ }
211+ }
197212
198213// Apply custom flavours
199214if (file(' custom-flavours.gradle' ). exists()){
@@ -216,10 +231,15 @@ dependencies {
216231 implementation (' com.apollographql.apollo:apollo-android-support:2.5.14' ){
217232 because(" Apollo 3+ only works with Kotlin coroutines" )
218233 }
219- testImplementation ' junit:junit:4.12'
234+ testImplementation ' junit:junit:4.13.2'
235+ testImplementation ' org.mockito:mockito-core:5.5.0'
236+ testImplementation ' org.robolectric:robolectric:4.11.1'
237+ testImplementation ' androidx.test:core:1.5.0'
220238 androidTestImplementation ' androidx.test.ext:junit:1.1.5'
221239 androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1'
240+ androidTestImplementation ' androidx.test:core:1.5.0'
222241 implementation group : ' com.squareup.picasso' , name : ' picasso' , version : ' 2.71828'
223242 implementation group : ' net.lingala.zip4j' , name : ' zip4j' , version : ' 1.2.7'
243+ implementation ' io.sentry:sentry-android:8.25.0'
224244
225245}
0 commit comments