Tests. Add defineJDKEnvVariables to tests of FIR2IR

Some tests use environment variables JDK_8, JDK_11, and JDK_17.
To ensure that the tests work out of the box,
we should set these variables in the tests.
This commit is contained in:
Simon Ogorodnik
2023-04-28 16:39:36 +02:00
committed by Space Team
parent 568b593da7
commit 3b979fb60e
+4 -1
View File
@@ -80,7 +80,10 @@ fun Test.configure(configureJUnit: JUnitPlatformOptions.() -> Unit = {}) {
}
}
projectTest(jUnitMode = JUnitMode.JUnit5) {
projectTest(
jUnitMode = JUnitMode.JUnit5,
defineJDKEnvVariables = listOf(JdkMajorVersion.JDK_1_8, JdkMajorVersion.JDK_11_0, JdkMajorVersion.JDK_17_0)
) {
configure()
}