mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
fix(ci): give unit tests a 2 GB heap (#1091)
Robolectric keeps one sandbox per SDK level the tests ask for, and the suite now asks for seven (26, 28, 29, 31, 33, 34 and the default). They no longer fit in Gradle's default 512 MB test heap, so testReleaseUnitTest runs out of memory part way through (SteamHomeHeadsetTest, GlassesMenuCaptureTest) on main and on every open PR.
This commit is contained in:
1 parent
df146d011f
commit
123fbc723c
1 file changed
+2
@@ -192,6 +192,8 @@ android {
|
||||
unitTests.returnDefaultValues = true
|
||||
unitTests.includeAndroidResources = true
|
||||
unitTests.all {
|
||||
// Robolectric keeps a sandbox per SDK level the tests ask for; seven no longer fit in Gradle's default 512 MB.
|
||||
maxHeapSize = '2g'
|
||||
def logTarget = providers.systemProperty('robolectric.logging').orNull
|
||||
if (logTarget != null) systemProperty 'robolectric.logging', logTarget
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user