diff --git a/slack-plugin/src/main/kotlin/slack/unittest/UnitTests.kt b/slack-plugin/src/main/kotlin/slack/unittest/UnitTests.kt index b2506e495..74893cf2d 100644 --- a/slack-plugin/src/main/kotlin/slack/unittest/UnitTests.kt +++ b/slack-plugin/src/main/kotlin/slack/unittest/UnitTests.kt @@ -195,6 +195,11 @@ internal object UnitTests { "-Xss1m", // Stack size ) + // TODO would be nice to some day only conditionally apply robolectric args + // Enable Robolectric's new NATIVE graphics mode. + // https://github.com/robolectric/robolectric/releases/tag/robolectric-4.10-alpha-1 + systemProperty("robolectric.graphicsMode", "NATIVE") + if (slackProperties.testVerboseLogging) { // Add additional logging on Jenkins to help debug hanging or OOM-ing unit tests. testLogging {