Trait/Object

org.specs2.reporter

TextPrinter

Related Docs: object TextPrinter | package reporter

Permalink

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.

Linear Supertypes
Printer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextPrinter
  2. Printer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(env: Env, specifications: List[SpecStructure]): Action[Unit]

    Permalink
    Definition Classes
    TextPrinterPrinter
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def indentText(text: String, indentation: Int, indentationSize: Int): String

    Permalink
  13. def indentationSize(args: Arguments): Int

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def linesLoggerSink(logger: LineLogger, header: SpecHeader, args: Arguments): AsyncSink[List[LogLine]]

    Permalink
  16. def location(r: ResultStackTrace, args: Arguments): String

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def prepare(env: Env, specifications: List[SpecStructure]): Action[Unit]

    Permalink
    Definition Classes
    TextPrinterPrinter
  21. def print(env: Env): (SpecStructure) ⇒ Action[Unit]

    Permalink

    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
  22. def printError(show: String, err: Error, args: Arguments): List[LogLine]

    Permalink
  23. def printExecutable(description: Description, result: Result, timer: SimpleTimer, args: Arguments, indentation: Int): List[LogLine]

    Permalink

    print an executed fragment: example, step, action

  24. def printFailure(show: String, failure: Failure, args: Arguments): List[LogLine]

    Permalink
  25. def printFailureDetails(args: Arguments): (Details) ⇒ List[LogLine]

    Permalink

    If the failure contains the expected and actual values, display them

  26. def printFinalStats(spec: SpecStructure, args: Arguments, logger: LineLogger): (((Stats, Int), SimpleTimer)) ⇒ Action[Unit]

    Permalink
  27. def printFragment(args: Arguments): ((Fragment, ((Stats, Int), SimpleTimer))) ⇒ Action[List[LogLine]]

    Permalink

    transform a stream of fragments into a stream of strings for printing

  28. def printHeader(args: Arguments): (SpecHeader) ⇒ List[LogLine]

    Permalink
  29. def printMessage(args: Arguments, description: String, as: (String) ⇒ LogLine): (Result with ResultStackTrace) ⇒ List[LogLine]

    Permalink
  30. def printNewLine: List[EmptyLine.type]

    Permalink
  31. def printOther(show: String, other: Result, args: Arguments): List[LogLine]

    Permalink
  32. def printPending(show: String, pending: Pending, args: Arguments): List[LogLine]

    Permalink
  33. def printSkipped(show: String, skipped: Skipped, args: Arguments): List[LogLine]

    Permalink
  34. def printSpecification(env: Env): (SpecificationStructure) ⇒ Action[Unit]

    Permalink

    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
  35. def printStacktrace(args: Arguments, print: Boolean, as: (String) ⇒ LogLine): (Result with ResultStackTrace) ⇒ List[LogLine]

    Permalink
  36. def printStats(header: SpecHeader, args: Arguments, stats: Stats, timer: SimpleTimer): List[LogLine]

    Permalink
  37. def printSuccess(show: String, success: Success, args: Arguments): List[LogLine]

    Permalink
  38. def printSummary(descriptions: (String, Seq[String])*): List[FailureLine]

    Permalink

    print a short summary of differences between Seqs, Sets or Maps

  39. def printValues(description: String, values: Seq[Any]): List[FailureLine]

    Permalink

    show values as a string with a description

  40. def run(env: Env): (SpecStructure) ⇒ Unit

    Permalink

    run a specification

  41. def showTime(description: String, timer: SimpleTimer, args: Arguments): String

    Permalink

    show execution times if the showtimes argument is true

  42. def sink(env: Env, spec: SpecStructure): AsyncSink[Fragment]

    Permalink
    Definition Classes
    TextPrinterPrinter
  43. def start(logger: LineLogger, header: SpecHeader, args: Arguments): Action[LineLogger]

    Permalink
  44. def statusAndDescription(text: String, result: Result)(args: Arguments): String

    Permalink
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Printer

Inherited from AnyRef

Inherited from Any

Ungrouped