ci: run unit tests in two parallel forks (#1737)

* ci: run unit tests in two forks

* test: start spatial controller mode tests with glasses output selected
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-28 17:35:11 -04:00
1 parent aef1f85aa9
commit 92787dd0f0
2 files changed
+4

No files matched your search

+1
View File
@@ -234,6 +234,7 @@ android {
}
// Robolectric keeps a sandbox per SDK level the tests ask for; seven no longer fit in Gradle's default 512 MB.
maxHeapSize = '2g'
maxParallelForks = 2
def logTarget = providers.systemProperty('robolectric.logging').orNull
if (logTarget != null) systemProperty 'robolectric.logging', logTarget
}
@@ -3,6 +3,7 @@ package com.droiddeck.launcher.glasses
import java.nio.ByteBuffer
import java.nio.ByteOrder
import org.junit.After
import org.junit.Before
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
@@ -15,6 +16,8 @@ class SpatialControllerModeTest {
private fun snapshot(): ByteBuffer = (SpatialTracking::class.java.getDeclaredField("buffer")
.apply { isAccessible = true }.get(null) as ByteBuffer).duplicate().order(ByteOrder.LITTLE_ENDIAN)
@Before fun outputOnGlasses() = SpatialTracking.setOutputUsesGlasses(true)
@After fun cleanUp() {
SpatialTracking.setSteadyHandAim(false)
SpatialTracking.setControllers(false, false)