mirror of https://github.com/sbt/sbt.git
Mark the tests failed exception as having already provided feedback
This commit is contained in:
parent
76a02c463f
commit
8d11d1087a
|
|
@ -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
|
||||
Loading…
Reference in New Issue