object runner
- Alphabetic
- By Inheritance
- runner
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class TestOutput extends AnyRef
Something you can use to represent the intermediate output of a typical
Harness
; a failure state and a side effect which prints all results. - final class TestResult extends AnyRef
Returned by
runner.apply
- after all is said and done, tests run and output printed, did any fail? Useful for exit status; I often checkfailed
and throw an exception inmain
if it'strue
.
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
- def apply(suites: List[() => Future[TestOutput]], printer: (String) => Unit, ec: ExecutionContext): Future[TestResult]
The meat of the runner.
The meat of the runner. Takes a list of
() => Future[TestOutput]
and runs all of them in sequence. Then, prints out how long the suites took to run, using the user-supplied printer. Returns whether any tests failed. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intersperseReverse(strs: ::[String], delim: String): ::[String]
- 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
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def printStrs(strs: List[String], output: (String) => Unit): Unit
These four functions are just utility methods for users to write fast test result printers.
These four functions are just utility methods for users to write fast test result printers.
- Annotations
- @tailrec()
- def printStrss(strs: List[List[String]], output: (List[String]) => Unit): Unit
- Annotations
- @tailrec()
- def printTest(out: Result, scope: List[String]): List[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- object TestOutput