From 8d11d1087a9d140bbbe7027c0778658392d680d6 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 28 Jan 2013 17:14:53 -0500 Subject: [PATCH] Mark the tests failed exception as having already provided feedback --- main/actions/src/main/scala/sbt/Tests.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/actions/src/main/scala/sbt/Tests.scala b/main/actions/src/main/scala/sbt/Tests.scala index 8f563807e..9ae218d10 100644 --- a/main/actions/src/main/scala/sbt/Tests.scala +++ b/main/actions/src/main/scala/sbt/Tests.scala @@ -189,7 +189,7 @@ object Tests show("Error during tests:", Level.Error, errors) if(!failures.isEmpty || !errors.isEmpty) - error("Tests unsuccessful") + throw new TestsFailedException } } @@ -200,3 +200,4 @@ object Tests final case class Group(name: String, tests: Seq[TestDefinition], runPolicy: TestRunPolicy) } +final class TestsFailedException extends RuntimeException("Tests unsuccessful") with FeedbackProvidedException \ No newline at end of file