org.scalatest.events
TestStarting
class
TestStarting(ordinal: Ordinal, suiteName: String, suiteClassName: Option[String], testName: String, formatter: Option[Formatter], rerunner: Option[Rerunner], payload: Option[Any], threadName: String, timeStamp: Long) extends Event with Product
Inherited
- Hide All
- Show all
- Product
- Equals
- Event
- Ordered
- Comparable
- AnyRef
- Any
Instance constructors
-
new
TestStarting(ordinal: Ordinal, suiteName: String, suiteClassName: Option[String], testName: String, formatter: Option[Formatter], rerunner: Option[Rerunner], payload: Option[Any], threadName: String, timeStamp: Long)
Value Members
-
def
!=(arg0: AnyRef): Boolean
-
def
!=(arg0: Any): Boolean
-
def
##(): Int
-
def
$asInstanceOf[T0](): T0
-
def
$isInstanceOf[T0](): Boolean
-
def
<(that: Event): Boolean
-
def
<=(that: Event): Boolean
-
def
==(arg0: AnyRef): Boolean
-
def
==(arg0: Any): Boolean
-
def
>(that: Event): Boolean
-
def
>=(that: Event): Boolean
-
def
asInstanceOf[T0]: T0
-
def
canEqual(arg0: Any): Boolean
-
def
clone(): AnyRef
-
def
compare(that: Event): Int
-
def
compareTo(that: Event): Int
-
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
val
formatter: Option[Formatter]
-
def
getClass(): java.lang.Class[_]
-
def
hashCode(): Int
-
def
isInstanceOf[T0]: Boolean
-
def
ne(arg0: AnyRef): Boolean
-
def
notify(): Unit
-
def
notifyAll(): Unit
-
-
val
payload: Option[Any]
-
def
productArity: Int
-
def
productElement(arg0: Int): Any
-
def
productElements: Iterator[Any]
-
def
productIterator: Iterator[Any]
-
def
productPrefix: String
-
val
rerunner: Option[Rerunner]
-
val
suiteClassName: Option[String]
-
val
suiteName: String
-
def
synchronized[T0](arg0: T0): T0
-
val
testName: String
-
val
threadName: String
-
val
timeStamp: Long
-
def
toString(): String
-
def
wait(): Unit
-
def
wait(arg0: Long, arg1: Int): Unit
-
def
wait(arg0: Long): Unit
Event that indicates a suite (or other entity) is about to start running a test.
For example, trait
Suite
usesTestStarting
to report that a test method of aSuite
is about to be invoked.To create instances of this class you may use one of the factory methods provided in its companion object. For example, given a report function named
report
, you could fire aTestStarting
event like this:The suite class name parameter is optional, because suites in ScalaTest are an abstraction that need not necessarily correspond to one class. Nevertheless, it most cases each suite will correspond to a class, and when it does, the fully qualified name of that class should be reported by passing a
Some
forsuiteClassName
. One use for this bit of information is JUnit integration, because the "name" provided to a JUnitorg.junit.runner.Description
appears to usually include a fully qualified class name by convention.an
Ordinal
that can be used to place this event in order in the context of other events reported during the same runthe name of the suite containing the test that is starting
an optional fully qualifed
Suite
class name containing the test that is startingthe name of the test that is starting
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 is starting (ifNone
is passed, the test cannot be rerun)an optional object that can be used to pass custom information to the reporter about the
TestStarting
eventa name for the
Thread
about whose activity this event was reporteda
Long
indicating the time this event was reported, expressed in terms of the number of milliseconds since the standard base time known as "the epoch": January 1, 1970, 00:00:00 GMTauthors:
Bill Venners