You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
override def withFixture(test: NoArgTest): Outcome = {
val session = MockitoScalaSession(name = s"MockitoFixtureSession[${test.name}]")
val outcome = super.withFixture(test)
session.finishMocking()
outcome
}
If outcome is a failed test and we have unused stubbings because of it then session.finishMocking() will throw an exception and the original test failure wont be presented to the user.
The text was updated successfully, but these errors were encountered:
PR #30 addresses this (I hope, maybe I missed it altogether, but I've done a lot of changes there) and some other issues/improvements, please take a look at it if you can, is not ready yet but I raised it to collect people's opinions
Current implementation:
If
outcome
is a failed test and we have unused stubbings because of it thensession.finishMocking()
will throw an exception and the original test failure wont be presented to the user.The text was updated successfully, but these errors were encountered: