Skip to content

Commit

Permalink
Use FailSuiteException, Remove dot from message
Browse files Browse the repository at this point in the history
terjokhin committed Feb 17, 2020

Unverified

This user has not yet uploaded their public signing key.
1 parent fa9a0c8 commit cd02012
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion munit/shared/src/main/scala/munit/MUnitRunner.scala
Original file line number Diff line number Diff line change
@@ -205,7 +205,7 @@ class MUnitRunner(val cls: Class[_ <: Suite], newInstance: () => Suite)
notifier.fireTestAssumptionFailed(
new Failure(
description,
new IllegalStateException("Suite has been aborted.")
new FailSuiteException("Suite has been aborted", test.location)
)
)
return Future.successful(false)
Original file line number Diff line number Diff line change
@@ -20,6 +20,6 @@ object FailSuiteFrameworkSuite
|7: test("fail") {
|8: failSuite("Oops, can not do anything.")
|9: }
|==> skipped munit.FailSuiteFrameworkSuite.not gonna run - Suite has been aborted.
|==> skipped munit.FailSuiteFrameworkSuite.not gonna run - Suite has been aborted
|""".stripMargin
)

0 comments on commit cd02012

Please sign in to comment.