From e5e3a6b87570bcfc41d238e5005b5dc567f88422 Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Mon, 16 Oct 2023 00:28:09 +0530 Subject: [PATCH] Upgrade robolectric to fix unit tests This is as per the observation of Nicolas Raoul in the MR. He mentions this brings down test failures to just 5. Ref: https://github.com/commons-app/apps-android-commons/pull/5220#issuecomment-1722425627 --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index b76028a10..6488e917a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -87,7 +87,7 @@ dependencies { // Unit testing testImplementation 'junit:junit:4.13.2' - testImplementation 'org.robolectric:robolectric:4.6.1' + testImplementation 'org.robolectric:robolectric:4.10.3' testImplementation 'androidx.test:core:1.4.0' testImplementation "com.squareup.okhttp3:mockwebserver:$OKHTTP_VERSION" testImplementation "com.jraska.livedata:testing-ktx:1.1.2"