summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2017-02-26 14:26:00 -0800
committerPaul Phillips <paulp@improving.org>2017-02-26 14:26:00 -0800
commiteac00e1a10522a2a461fe4651643b11ad69ba131 (patch)
tree0b513fb42c0a7b749d4f258611dee23281a4dd2c /build.sbt
parent5f1a638cf5f3b81fd3d8b4fa92a5a52ac5733517 (diff)
downloadscala-eac00e1a10522a2a461fe4651643b11ad69ba131.tar.gz
scala-eac00e1a10522a2a461fe4651643b11ad69ba131.tar.bz2
scala-eac00e1a10522a2a461fe4651643b11ad69ba131.zip
Add partest paths to the list of watched sources.
This allows running partest continuously (e.g. ~partest a/b/test) with it triggering on changes to the test source.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 6a74107de5..da823d7df7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1018,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 =