Converts this Outcome
to a Succeeded
.
Converts this Outcome
to a Succeeded
.
When this Outcome
instance is not Succeeded, it behaves as followed:
Succeeded if this Outcome
instance is a Succeeded.
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 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 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
.
Superclass for the possible outcomes of running a test.
Outcome
is the result type of thewithFixture
methods of traitsSuite
andfixture.Suite
, as well as theirNoArgTest
andOneArgTest
function types. The four possible outcomes are:Succeeded
- indicates a test succeededFailed
- indicates a test failed and contains an exception describing the failureCanceled
- indicates a test was canceled and contains an exception describing the cancelationPending
- indicates a test was pendingNote that "ignored" does not appear as a type of
Outcome
, because tests are marked as ignored on the outside and skipped over as the suite executes. So an ignored test never runs, and therefore never has an outcome. By contrast, a test is determined to be pending by running the test and observing the actual outcome. If the test body completes abruptly with aTestPendingException
, then the outcome was that the test was pending.