From 9235f92206f3d99a64e13ca0f115c9b8e4efc27e Mon Sep 17 00:00:00 2001 From: Nailik <13292441+Nailik@users.noreply.github.com> Date: Tue, 24 Jun 2025 15:16:07 +0200 Subject: [PATCH] [PM-22903] fix unit test execution (#5401) --- README.md | 10 ++++++++++ app/build.gradle.kts | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c2066e59e..ba04f67b8b 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,16 @@ Please avoid mixing formatting and logical changes in the same commit/PR. When possible, fix any large formatting issues in a separate PR before opening one to make logical changes to the same code. This helps others focus on the meaningful code changes when reviewing the code. +4. Setup JDK `Version` `17`: + + - Navigate to `Preferences > Build, Execution, Deployment > Build Tools > Gradle`. + - Hit the selected Gradle JDK next to `Gradle JDK:`. + - Select a `17.x` version or hit `Download JDK...` if not present. + - Select `Version` `17`. + - Select your preferred `Vendor`. + - Hit `Download`. + - Hit `Apply`. + ## Theme ### Icons & Illustrations diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 076f896957..75816104dc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -296,7 +296,7 @@ tasks { useJUnitPlatform() maxHeapSize = "2g" maxParallelForks = Runtime.getRuntime().availableProcessors() - jvmArgs = jvmArgs.orEmpty() + "-XX:+UseParallelGC" + jvmArgs = jvmArgs.orEmpty() + "-XX:+UseParallelGC" + "-Duser.country=US" android.sourceSets["main"].res.srcDirs("src/test/res") } }