Mark the tests failed exception as having already provided feedback

This commit is contained in:
Mark Harrah 2013-01-28 17:14:53 -05:00
parent 76a02c463f
commit 8d11d1087a
1 changed files with 2 additions and 1 deletions

View File

@ -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