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. --- project/PartestUtil.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'project') 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( -- cgit v1.2.3