trait TextPrinter extends Printer
Prints the result of a specification execution to the console (using the line logger provided by the environment)
At the end of the run the specification statistics are displayed as well.
- Alphabetic
- By Inheritance
- TextPrinter
- Printer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(env: Env, specifications: List[SpecStructure]): Action[Unit]
- Definition Classes
- TextPrinter → Printer
- def finalize(): Unit
- Attributes
- protected[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 indentText(text: String, indentation: Int, indentationSize: Int): String
- def indentationSize(args: Arguments): Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def linesLoggerSink(logger: LineLogger, header: SpecHeader, args: Arguments): AsyncSink[List[LogLine]]
- def location(r: ResultStackTrace, args: Arguments): String
- 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 prepare(env: Env, specifications: List[SpecStructure]): Action[Unit]
- Definition Classes
- TextPrinter → Printer
- def print(env: Env): (SpecStructure) => Action[Unit]
convenience method to print a SpecStructure using the printer's Fold
convenience method to print a SpecStructure using the printer's Fold
- Definition Classes
- Printer
- def printError(show: String, err: Error, args: Arguments): List[LogLine]
- def printExecutable(description: Description, result: Result, timer: SimpleTimer, args: Arguments, indentation: Int): List[LogLine]
print an executed fragment: example, step, action
- def printFailure(show: String, failure: Failure, args: Arguments): List[LogLine]
- def printFailureDetails(args: Arguments): (Details) => List[LogLine]
If the failure contains the expected and actual values, display them
- def printFinalStats(spec: SpecStructure, args: Arguments, logger: LineLogger): (((Stats, Int), SimpleTimer)) => Action[Unit]
- def printFragment(args: Arguments): ((Fragment, ((Stats, Int), SimpleTimer))) => Action[List[LogLine]]
transform a stream of fragments into a stream of strings for printing
- def printHeader(args: Arguments): (SpecHeader) => List[LogLine]
- def printMessage(args: Arguments, description: String, as: (String) => LogLine): (Result with ResultStackTrace) => List[LogLine]
- def printNewLine: List[EmptyLine.type]
- def printOther(show: String, other: Result, args: Arguments): List[LogLine]
- def printPending(show: String, pending: Pending, args: Arguments): List[LogLine]
- def printSkipped(show: String, skipped: Skipped, args: Arguments): List[LogLine]
- def printSpecification(env: Env): (SpecificationStructure) => Action[Unit]
convenience method to print a SpecificationStructure using the printer's Fold
convenience method to print a SpecificationStructure using the printer's Fold
- Definition Classes
- Printer
- def printStacktrace(args: Arguments, print: Boolean, as: (String) => LogLine): (Result with ResultStackTrace) => List[LogLine]
- def printStats(header: SpecHeader, args: Arguments, stats: Stats, timer: SimpleTimer): List[LogLine]
- def printSuccess(show: String, success: Success, args: Arguments): List[LogLine]
- def printSummary(descriptions: (String, Seq[String])*): List[FailureLine]
print a short summary of differences between Seqs, Sets or Maps
- def printValues(description: String, values: Seq[Any]): List[FailureLine]
show values as a string with a description
- def run(env: Env): (SpecStructure) => Unit
run a specification
- def showTime(description: String, timer: SimpleTimer, args: Arguments): String
show execution times if the showtimes argument is true
- def sink(env: Env, spec: SpecStructure): AsyncSink[Fragment]
- Definition Classes
- TextPrinter → Printer
- def start(logger: LineLogger, header: SpecHeader, args: Arguments): Action[LineLogger]
- def statusAndDescription(text: String, result: Result)(args: Arguments): 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()