From eac00e1a10522a2a461fe4651643b11ad69ba131 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 26 Feb 2017 14:26:00 -0800 Subject: 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. --- build.sbt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build.sbt') 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 = -- cgit v1.2.3