summaryrefslogtreecommitdiff
path: root/project
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 /project
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 'project')
-rw-r--r--project/PartestUtil.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/project/PartestUtil.scala b/project/PartestUtil.scala
index 127dcafefa..6d2c9a4c45 100644
--- a/project/PartestUtil.scala
+++ b/project/PartestUtil.scala
@@ -26,6 +26,10 @@ object PartestUtil {
isParentOf(testBase / srcPath, f, 2) || isParentOf(f, testBase / srcPath, Int.MaxValue)
}
}
+
+ def testFilePaths(globalBase: File, testBase: File): Seq[java.io.File] =
+ (new TestFiles("files", globalBase, testBase)).allTestCases.map(_._1)
+
/** A parser for the custom `partest` command */
def partestParser(globalBase: File, testBase: File): Parser[String] = {
val knownUnaryOptions = List(