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 whether this Outcome
represents a test that either failed or was canceled, in which case this Outcome
will contain an exception.
Indicates whether this Outcome
represents a test that either failed or was canceled, in which case this Outcome
will contain an exception.
true if this Outcome
is an instance of either Failed
or Canceled
.
Indicates whether this Outcome
represents a test that failed.
Indicates whether this Outcome
represents a test that failed.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of 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 that this Outcome
represents a test that succeeded.
Converts this Outcome
to an Option[Throwable]
.
Converts this Outcome
to an Option[Throwable]
.
This class's implementation of this method always returns None
.
a Some
wrapping the contained exception if this Outcome
is an instance of either Failed
or Canceled
.
Converts this Outcome
to a Succeeded
.
Outcome for a test that succeeded.
Note: the difference between this
Succeeded
object and the similarly namedSucceededStatus
object is that this object indicates one test (or assertion) succeeded, whereas theSucceededStatus
object indicates the absence of any failed tests or aborted suites during a run. Both are used as the result type ofSuite
lifecycle methods, butSucceeded
is a possible result ofwithFixture
, whereasSucceededStatus
is a possible result ofrun
,runNestedSuites
,runTests
, orrunTest
. In short,Succeeded
is always just about one test (or assertion), whereasSucceededStatus
could be about something larger: multiple tests or an entire suite.