From dcd9a0d860e4b9d69d0e92fe3718b037253484bc Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Thu, 19 Sep 2019 20:39:10 +0200 Subject: [PATCH] Fix runGradingTest on windows Fix for https://gitlab.epfl.ch/lamp/cs-210-functional-programming-2019/issues/9, classpath are separated by ";" instead of ":" on Windows (because ":" is needed to write "C:\..."), the solution is to use `File.pathSeparator` which will choose the correct character for the current OS. --- project/StudentTasks.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/StudentTasks.scala b/project/StudentTasks.scala index bec5cec..587ba85 100644 --- a/project/StudentTasks.scala +++ b/project/StudentTasks.scala @@ -53,7 +53,7 @@ object StudentTasks extends AutoPlugin { throw new MessageOnlyException(s"Could not find tests JarFile: $testSuiteJar") } - val classPath = s"${(Test / dependencyClasspath).value.map(_.data).mkString(":")}:$testSuiteJar" + val classPath = s"${(Test / dependencyClasspath).value.map(_.data).mkString(File.pathSeparator)}${File.pathSeparator}$testSuiteJar" val junitProcess = Fork.java.fork( ForkOptions(),