diff options
author | Paul Phillips <paulp@improving.org> | 2017-02-26 14:26:00 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2017-02-26 14:26:00 -0800 |
commit | eac00e1a10522a2a461fe4651643b11ad69ba131 (patch) | |
tree | 0b513fb42c0a7b749d4f258611dee23281a4dd2c /project | |
parent | 5f1a638cf5f3b81fd3d8b4fa92a5a52ac5733517 (diff) | |
download | scala-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.scala | 4 |
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( |