Succeeded
Outcome for a test that succeeded.
Note: the difference between this Succeeded object and the similarly named SucceededStatus
object is that this object indicates one test (or assertion) succeeded, whereas the SucceededStatus object indicates the absence of any failed tests or
aborted suites during a run. Both are used as the result type of Suite lifecycle methods, but Succeeded
is a possible result of withFixture, whereas SucceededStatus is a possible result of run, runNestedSuites,
runTests, or runTest. In short, Succeeded is always just about one test (or assertion), whereas SucceededStatus could be
about something larger: multiple tests or an entire suite.
Type members
Inherited types
Value members
Concrete methods
Inherited methods
Converts this Outcome to an Option[Throwable].
Converts this Outcome to an Option[Throwable].
This class's implementation of this method always returns None.
- Returns:
a
Somewrapping the contained exception if thisOutcomeis an instance of eitherFailedorCanceled.- Inherited from:
- Outcome
Concrete fields
Inherited fields
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.
- Returns:
true if this
Outcomeis an instance ofCanceled.- Inherited from:
- Outcome
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.
- Returns:
true if this
Outcomeis an instance of eitherFailedorCanceled.- Inherited from:
- Outcome
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.
- Returns:
true if this
Outcomeis an instance ofFailed.- Inherited from:
- Outcome