diff --git a/src/main/groovy/wooga/gradle/unity/tasks/Test.groovy b/src/main/groovy/wooga/gradle/unity/tasks/Test.groovy index 056904b5..99cd41d2 100644 --- a/src/main/groovy/wooga/gradle/unity/tasks/Test.groovy +++ b/src/main/groovy/wooga/gradle/unity/tasks/Test.groovy @@ -164,7 +164,8 @@ class Test extends AbstractUnityProjectTask implements Reporting buildTestArguments(DefaultArtifactVersion unityVersion) { def testArgs = [] if ((unityVersion.majorVersion == 5 && unityVersion.minorVersion == 6) - || (unityVersion.majorVersion == 2017 && unityVersion.minorVersion == 1)) { + || unityVersion.majorVersion == 2017 + || (unityVersion.majorVersion == 2018 && unityVersion.minorVersion == 1)) { logger.info("activate unittests with ${BatchModeFlags.RUN_TESTS} switch") //new unit test runner does not work in batchmode diff --git a/src/test/groovy/wooga/gradle/unity/tasks/TestSpec.groovy b/src/test/groovy/wooga/gradle/unity/tasks/TestSpec.groovy index 62813ed1..86c7124e 100644 --- a/src/test/groovy/wooga/gradle/unity/tasks/TestSpec.groovy +++ b/src/test/groovy/wooga/gradle/unity/tasks/TestSpec.groovy @@ -120,6 +120,7 @@ class TestSpec extends ProjectSpec { PosixFilePermission.GROUP_EXECUTE, ].toSet()) environmentVariables.set("WMIC_PATH", wmic.path) + environmentVariables.set("REDIRECT_STDOUT_ENV_VAR", "false") expect: Test.retrieveUnityVersion(project, unityPath, "5.5.0").toString() == version @@ -131,12 +132,20 @@ class TestSpec extends ProjectSpec { "MAC OS X" | "5.5.0" | "-runEditorTests" "MAC OS X" | "5.6.0" | "-runTests" "MAC OS X" | "2017.1.0" | "-runTests" - "MAC OS X" | "2017.2.0" | "" + "MAC OS X" | "2017.2.0" | "-runTests" + "MAC OS X" | "2017.3.0" | "-runTests" + "MAC OS X" | "2017.4.0" | "-runTests" + "MAC OS X" | "2018.1.0" | "-runTests" + "MAC OS X" | "2018.2.0" | "" "WINDOWS" | "5.4.0" | "" "WINDOWS" | "5.5.0" | "-runEditorTests" "WINDOWS" | "5.6.0" | "-runTests" "WINDOWS" | "2017.1.0" | "-runTests" - "WINDOWS" | "2017.2.0" | "" + "WINDOWS" | "2017.2.0" | "-runTests" + "WINDOWS" | "2017.3.0" | "-runTests" + "WINDOWS" | "2017.4.0" | "-runTests" + "WINDOWS" | "2018.1.0" | "-runTests" + "WINDOWS" | "2018.2.0" | "" } }