Printer

org.specs2.reporter.Printer
See thePrinter companion object
trait Printer

A Printer is essentially defined by a FoldM sink that:

  • can run a Process[Task, Fragment]
  • uses a scalaz-stream Sink for side-effects and
  • accumulates state for final reporting

See TextPrinter for an example of such a Printer

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MarkdownPrinter.type
trait SbtPrinter
trait TextPrinter
object TextPrinter.type

Members list

Value members

Abstract methods

def finalize(env: Env, specifications: List[SpecStructure]): Action[Unit]
def prepare(env: Env, specifications: List[SpecStructure]): Action[Unit]
def sink(env: Env, spec: SpecStructure): AsyncSink[Fragment]

Concrete methods

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

Attributes