Give the app test JVM a 2g heap

This commit is contained in:
root 2026-11-08 07:17:07 +01:00
parent 3da8a31c5b
commit da003d9ea4

View file

@ -495,6 +495,8 @@ tasks.withType<Test>().configureEach {
dependsOn(":wolfskin-design:testDebugUnitTest") dependsOn(":wolfskin-design:testDebugUnitTest")
// Android 16 shared-memory setup needs Robolectric's JDK FileDescriptor bridge. // Android 16 shared-memory setup needs Robolectric's JDK FileDescriptor bridge.
jvmArgs("--add-exports=java.base/jdk.internal.access=ALL-UNNAMED") jvmArgs("--add-exports=java.base/jdk.internal.access=ALL-UNNAMED")
// The full suite keeps every Robolectric capture in one worker; the 512 MB default runs out near the end.
maxHeapSize = "2g"
systemProperty("robolectric.dependency.dir", project(":wolfskin-design").layout.buildDirectory.dir("robolectric-sdk").get().asFile.absolutePath) systemProperty("robolectric.dependency.dir", project(":wolfskin-design").layout.buildDirectory.dir("robolectric-sdk").get().asFile.absolutePath)
systemProperty("robolectric.offline", "true") systemProperty("robolectric.offline", "true")
systemProperty("roborazzi.test.record", "true") systemProperty("roborazzi.test.record", "true")