diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-18 17:11:32 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-18 17:11:32 -0800 |
commit | 2412bf2775676a9c09eb3d370a2bd9064c51822b (patch) | |
tree | 800b113cf701a7ccb2fb19347fd469bcef4818ca | |
parent | b1ae941cb360218a7208709d696aae439567168d (diff) | |
download | mill-2412bf2775676a9c09eb3d370a2bd9064c51822b.tar.gz mill-2412bf2775676a9c09eb3d370a2bd9064c51822b.tar.bz2 mill-2412bf2775676a9c09eb3d370a2bd9064c51822b.zip |
dry-up-workspace
-rw-r--r-- | core/src/test/scala/mill/eval/FailureTests.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/scala/mill/eval/FailureTests.scala b/core/src/test/scala/mill/eval/FailureTests.scala index 8963031a..6977334d 100644 --- a/core/src/test/scala/mill/eval/FailureTests.scala +++ b/core/src/test/scala/mill/eval/FailureTests.scala @@ -8,13 +8,15 @@ import utest.framework.TestPath object FailureTests extends TestSuite{ + def workspace(implicit tp: TestPath) = { + ammonite.ops.pwd / 'target / 'workspace / 'failure / implicitly[TestPath].value + } val tests = Tests{ val graphs = new mill.util.TestGraphs() import graphs._ def check[T: Discovered](base: T) (target: T => Target[_], expectedFailCount: Int, expectedRawValues: Seq[Result[_]]) (implicit tp: TestPath) = { - val workspace = ammonite.ops.pwd / 'target / 'workspace / 'failure / implicitly[TestPath].value val evaluator = new Evaluator(workspace, Discovered.mapping(base), _ => ()) val res = evaluator.evaluate(OSet(target(base))) assert( @@ -24,7 +26,6 @@ object FailureTests extends TestSuite{ } 'evaluateSingle - { - val workspace = ammonite.ops.pwd / 'target / 'workspace / 'failure / implicitly[TestPath].value ammonite.ops.rm(ammonite.ops.Path(workspace, ammonite.ops.pwd)) check(singleton)( @@ -61,7 +62,6 @@ object FailureTests extends TestSuite{ ) } 'evaluatePair - { - val workspace = ammonite.ops.pwd / 'target / 'workspace / 'failure / implicitly[TestPath].value ammonite.ops.rm(ammonite.ops.Path(workspace, ammonite.ops.pwd)) check(pair)( |