org.scalatest.Failed
See theFailed companion object
case class Failed(exception: Throwable) extends Exceptional
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 named FailedStatus
object is that an instance of this class indicates one test failed, whereas the FailedStatus
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 of Suite
lifecycle methods, but Failed
is a possible result of withFixture
, whereas FailedStatus
is a possible result of run
, runNestedSuites
, runTests
, or runTest
. In short, Failed
is always just about one test, whereas FailedStatus
could be about something larger: multiple tests or an entire suite.
Value parameters
- ex
-
the
Throwable
contained in thisFailed
.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Exceptionalclass Outcometrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article