trait TestContext extends AnyRef
Context of the current test suite.
Every Suite implementation is provided with a TestContext to register test outcomes and accumulators.
- Alphabetic
- By Inheritance
- TestContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def registerOutcome(title: String, outcome: Outcome, payload: Option[Any], geometry: Seq[Feature], message: Option[String]): Unit
Register a new test-case outcome.
Register a new test-case outcome.
- title
The title of the test-case.
- outcome
The outcome of the test-case.
- payload
The optional payload attached to the test-case report.
- geometry
Optional geometry attached to the test-case report.
- message
Optional additional test outcome description.
- abstract def withAccumulator[A <: Accumulator[_]](name: String)(fn: (A) => A)(implicit arg0: ClassTag[A]): Unit
Updates or creates a new accumulator.
Updates or creates a new accumulator.
- A
The accumulator type.
- name
The accumulator name.
- fn
The update function. It receives the old value of the accumulator and returns the new value. If the accumulator doesn't exist yet, a new accumulator of type
Ais created with its zero value (using classAdefault constructor). If the accumulator exists with a different type, and exception is thrown.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def registerFailed(title: String, payload: Option[Any] = None, geometry: Seq[Feature] = Nil, message: Option[String] = None): Unit
Register a new test-case failed outcome.
Register a new test-case failed outcome.
- title
The title of the test-case.
- payload
The optional payload attached to the test-case report.
- geometry
Optional geometry attached to the test-case report.
- message
Optional additional test failure description.
- final def registerSkipped(title: String, payload: Option[Any] = None, geometry: Seq[Feature] = Nil, message: Option[String] = None): Unit
Register a new test-case skipped outcome.
Register a new test-case skipped outcome.
- title
The title of the test-case.
- payload
The optional payload attached to the test-case report.
- geometry
Optional geometry attached to the test-case report.
- message
Optional additional test skip description.
- final def registerSucceeded(title: String, payload: Option[Any] = None, geometry: Seq[Feature] = Nil, message: Option[String] = None): Unit
Register a new test-case succeeded outcome.
Register a new test-case succeeded outcome.
- title
The title of the test-case.
- payload
The optional payload attached to the test-case report.
- geometry
Optional geometry attached to the test-case report.
- message
Optional additional test success description.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)