Browse files

SBT tweaks - test either hang after execution or cannot be rerun with…

…out quiting SBT.
  • Loading branch information...
1 parent 3851f62 commit 4241283edde66368ef40521550f423a2d3b5146b Jarek Sacha committed Nov 19, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 build.sbt
View
17 build.sbt
@@ -15,6 +15,9 @@ resourceDirectory <<= baseDirectory(_ / "src")
// Set the Scala test directory to be <base>/test/src
scalaSource in Test <<= baseDirectory(_ / "test/src")
+// append -deprecation to the options passed to the Scala compiler
+scalacOptions += "-deprecation"
+
// ScalaFX is assumed to be in local repo (build locally)
resolvers += "Local Maven Repository" at "file:///"+Path.userHome.absolutePath+"/.m2/repository"
@@ -29,3 +32,17 @@ libraryDependencies += "org.scalatest" %% "scalatest" % "1.7.+" % "test"
// For Java 7 update 06+ the JFXRT JAR is part of the Java Runtime Environment
unmanagedJars in Compile += Attributed.blank(file(System.getenv("JAVA_HOME") + "/jre/lib/jfxrt.jar"))
+
+// Fork a new JVM for 'run' and 'test:run'
+fork := false
+
+// Fork a new JVM for 'test:run', but not 'run'
+fork in Test := false
+
+// Only use a single thread for building
+parallelExecution := false
+
+// Execute tests in the current project serially
+parallelExecution in Test := false
+
+

0 comments on commit 4241283

Please sign in to comment.