File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -601,6 +601,8 @@ lazy val junit = project.in(file("test") / "junit")
601
601
.settings(
602
602
fork in Test := true ,
603
603
javaOptions in Test += " -Xss1M" ,
604
+ (forkOptions in Test ) := (forkOptions in Test ).value.withWorkingDirectory((baseDirectory in ThisBuild ).value),
605
+ (forkOptions in Test in testOnly) := (forkOptions in Test in testOnly).value.withWorkingDirectory((baseDirectory in ThisBuild ).value),
604
606
libraryDependencies ++= Seq (junitDep, junitInterfaceDep, jolDep),
605
607
testOptions += Tests .Argument (TestFrameworks .JUnit , " -a" , " -v" ),
606
608
unmanagedSourceDirectories in Compile := Nil ,
@@ -724,6 +726,7 @@ lazy val test = project
724
726
testFrameworks += new TestFramework (" scala.tools.partest.sbt.Framework" ),
725
727
testOptions in IntegrationTest += Tests .Argument (" -Dpartest.java_opts=-Xmx1024M -Xms64M" ),
726
728
testOptions in IntegrationTest += Tests .Argument (" -Dpartest.scalac_opts=" + (scalacOptions in Compile ).value.mkString(" " )),
729
+ (forkOptions in IntegrationTest ) := (forkOptions in IntegrationTest ).value.withWorkingDirectory((baseDirectory in ThisBuild ).value),
727
730
testOptions in IntegrationTest += {
728
731
val cp = (dependencyClasspath in Test ).value
729
732
val baseDir = (baseDirectory in ThisBuild ).value
You can’t perform that action at this time.
0 commit comments