Constructs a new TestFailed
event with the passed parameters, passing None
for duration
,
None
for formatter
, None
as the rerunner
, None
as the payload
,
the current threads name as threadname
, and the current time as timeStamp
.
Constructs a new TestFailed
event with the passed parameters, passing None
for duration
,
None
for formatter
, None
as the rerunner
, None
as the payload
,
the current threads name as threadname
, and the current time as timeStamp
.
an Ordinal
that can be used to place this event in order in the context of
other events reported during the same run
a localized message suitable for presenting to the user
the name of the suite containing the test that has failed
an optional fully qualifed Suite
class name containing the test that has failed
the name of the test that has failed
an optional Throwable
that, if a Some
, indicates why the test has failed,
or a Throwable
created to capture stack trace information about the problem.
a new TestFailed
instance initialized with the passed and default values
Constructs a new TestFailed
event with the passed parameters, passing None
for
formatter
, None
as the rerunner
, None
as the payload
,
the current threads name as threadname
, and the current time as timeStamp
.
Constructs a new TestFailed
event with the passed parameters, passing None
for
formatter
, None
as the rerunner
, None
as the payload
,
the current threads name as threadname
, and the current time as timeStamp
.
an Ordinal
that can be used to place this event in order in the context of
other events reported during the same run
a localized message suitable for presenting to the user
the name of the suite containing the test that has failed
an optional fully qualifed Suite
class name containing the test that has failed
the name of the test that has failed
an optional Throwable
that, if a Some
, indicates why the test has failed,
or a Throwable
created to capture stack trace information about the problem.
an optional amount of time, in milliseconds, that was required to run the test that has failed
a new TestFailed
instance initialized with the passed and default values
Constructs a new TestFailed
event with the passed parameters, passing None
as the
rerunner
, None
as the payload
, the current threads name as threadname
,
and the current time as timeStamp
.
Constructs a new TestFailed
event with the passed parameters, passing None
as the
rerunner
, None
as the payload
, the current threads name as threadname
,
and the current time as timeStamp
.
an Ordinal
that can be used to place this event in order in the context of
other events reported during the same run
a localized message suitable for presenting to the user
the name of the suite containing the test that has failed
an optional fully qualifed Suite
class name containing the test that has failed
the name of the test that has failed
an optional Throwable
that, if a Some
, indicates why the test has failed,
or a Throwable
created to capture stack trace information about the problem.
an optional amount of time, in milliseconds, that was required to run the test that has failed
an optional formatter that provides extra information that can be used by reporters in determining how to present this event to the user
a new TestFailed
instance initialized with the passed and default values
Constructs a new TestFailed
event with the passed parameters, passing None
as the
payload
, the current threads name as threadname
, and the current time as timeStamp
.
Constructs a new TestFailed
event with the passed parameters, passing None
as the
payload
, the current threads name as threadname
, and the current time as timeStamp
.
an Ordinal
that can be used to place this event in order in the context of
other events reported during the same run
a localized message suitable for presenting to the user
the name of the suite containing the test that has failed
an optional fully qualifed Suite
class name containing the test that has failed
the name of the test that has failed
an optional Throwable
that, if a Some
, indicates why the test has failed,
or a Throwable
created to capture stack trace information about the problem.
an optional amount of time, in milliseconds, that was required to run the test that has failed
an optional formatter that provides extra information that can be used by reporters in determining how to present this event to the user
an optional Rerunner
that can be used to rerun the test that has failed (if None
is passed, the test cannot be rerun)
a new TestFailed
instance initialized with the passed and default values
Constructs a new TestFailed
event with the passed parameters, passing the current thread's
name as threadname
and the current time as timeStamp
.
Constructs a new TestFailed
event with the passed parameters, passing the current thread's
name as threadname
and the current time as timeStamp
.
an Ordinal
that can be used to place this event in order in the context of
other events reported during the same run
a localized message suitable for presenting to the user
the name of the suite containing the test that has failed
an optional fully qualifed Suite
class name containing the test that has failed
the name of the test that has failed
an optional Throwable
that, if a Some
, indicates why the test has failed,
or a Throwable
created to capture stack trace information about the problem.
an optional amount of time, in milliseconds, that was required to run the test that has failed
an optional formatter that provides extra information that can be used by reporters in determining how to present this event to the user
an optional Rerunner
that can be used to rerun the test that has failed (if None
is passed, the test cannot be rerun)
an optional object that can be used to pass custom information to the reporter about the TestFailed
event
a new TestFailed
instance initialized with the passed and default values
Deprecated singleton object for the
TestFailed
event, which contains overloaded factory methods and an extractor method to facilitate pattern matching onTestFailed
objects. This object contains methods that were in theTestFailed
companion object prior to ScalaTest 2.0. If you get a compiler error when upgrading to 2.0 for one of the methods formerly in the companion object, a quick way to fix it is to putDeprecated
in front of your call. Eventually you will need to fix it properly, as this singleton object is deprecated and will be removed in a future version of ScalaTest, but this will work as a quick fix to get you compiling again.All factory methods throw
NullPointerException
if any of the passed values arenull
.Use TestFailed with named and/or default parameters instead.