summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 6bb9c10166..da823d7df7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -32,6 +32,7 @@
* - to modularize the Scala compiler or library further
*/
+import scala.build._
import VersionUtil._
// Scala dependencies:
@@ -1017,6 +1018,9 @@ commands += Command("partest")(_ => PartestUtil.partestParser((baseDirectory in
("test/it:testOnly -- " + parsed) :: state
}
+// Watch the test files also so ~partest triggers on test case changes
+watchSources ++= PartestUtil.testFilePaths((baseDirectory in ThisBuild).value, (baseDirectory in ThisBuild).value / "test")
+
// Add tab completion to scalac et al.
commands ++= {
val commands =