summaryrefslogtreecommitdiff
path: root/core/test
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-04 10:35:59 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-04 10:35:59 -0800
commit0e7a30ef554cf5b2725af4a7afc73b9e11287547 (patch)
tree22c8e7d05142a83ee829cee8f63ccf42253b5ee0 /core/test
parente34b2cd25ced6dfef6dbcbcadcfed978494f2630 (diff)
downloadmill-0e7a30ef554cf5b2725af4a7afc73b9e11287547.tar.gz
mill-0e7a30ef554cf5b2725af4a7afc73b9e11287547.tar.bz2
mill-0e7a30ef554cf5b2725af4a7afc73b9e11287547.zip
catch compile-failure exceptions to avoid showing the stack trace
Diffstat (limited to 'core/test')
-rw-r--r--core/test/src/mill/eval/CrossTests.scala2
-rw-r--r--core/test/src/mill/util/TestEvaluator.scala4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/test/src/mill/eval/CrossTests.scala b/core/test/src/mill/eval/CrossTests.scala
index 753cf369..c9f7cb70 100644
--- a/core/test/src/mill/eval/CrossTests.scala
+++ b/core/test/src/mill/eval/CrossTests.scala
@@ -26,7 +26,7 @@ object CrossTests extends TestSuite{
val Right(("2.12", 1)) = check.apply(crossResolved.foo("2.12").suffix)
val Right(("_2.10", 1)) = check.apply(crossResolved.bar("2.10").longSuffix)
- val Right(("_211", 1)) = check.apply(crossResolved.bar("2.11").longSuffix)
+ val Right(("_2.11", 1)) = check.apply(crossResolved.bar("2.11").longSuffix)
val Right(("_2.12", 1)) = check.apply(crossResolved.bar("2.12").longSuffix)
}
diff --git a/core/test/src/mill/util/TestEvaluator.scala b/core/test/src/mill/util/TestEvaluator.scala
index 8ef12417..3fdd7c63 100644
--- a/core/test/src/mill/util/TestEvaluator.scala
+++ b/core/test/src/mill/util/TestEvaluator.scala
@@ -28,8 +28,8 @@ class TestEvaluator[T <: TestUtil.TestBuild](module: T)
tp: TestPath){
val outPath = TestUtil.getOutPath()
- val logger = DummyLogger
-// val logger = new PrintLogger(true, ammonite.util.Colors.Default, System.out, System.out, System.err)
+// val logger = DummyLogger
+ val logger = new PrintLogger(true, ammonite.util.Colors.Default, System.out, System.out, System.err)
val evaluator = new Evaluator(outPath, TestEvaluator.externalOutPath, module, discover, logger)
def apply[T](t: Task[T]): Either[Result.Failing, (T, Int)] = {