Indicates whether this Outcome
represents a test that was canceled.
Indicates whether this Outcome
represents a test that was canceled.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Canceled
.
Indicates that this Outcome
represents a test that either failed or was canceled.
Indicates that this Outcome
represents a test that either failed or was canceled.
true
Indicates that this Outcome
represents a test that failed.
Indicates whether this Outcome
represents a test that was pending.
Indicates whether this Outcome
represents a test that was pending.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Pending
.
Indicates whether this Outcome
represents a test that succeeded.
Indicates whether this Outcome
represents a test that succeeded.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Succeeded
.
Converts this Exceptional
to a Some
that wraps the contained exception.
Converts this Exceptional
to a Some
that wraps the contained exception.
A Some
wrapping the exception contained in this Exceptional
.
Converts this Outcome
to a Succeeded
.
Outcome for a test that failed, containing an exception describing the cause of the failure.
Note: the difference between this
Failed
class and the similarly namedFailedStatus
object is that an instance of this class indicates one test failed, whereas theFailedStatus
object indicates either one or more tests failed and/or one or more suites aborted during a run. Both are used as the result type ofSuite
lifecycle methods, butFailed
is a possible result ofwithFixture
, whereasFailedStatus
is a possible result ofrun
,runNestedSuites
,runTests
, orrunTest
. In short,Failed
is always just about one test, whereasFailedStatus
could be about something larger: multiple tests or an entire suite.