SbtPrinter

org.specs2.reporter.SbtPrinter
See theSbtPrinter companion object
trait SbtPrinter extends Printer

Text printer for Sbt

It delegates the console printing to a normal text printer but using the Sbt loggers It also publishes events (success, error, skipped, pending) to Sbt

Attributes

Companion
object
Graph
Supertypes
trait Printer
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

events handler to notify Sbt of successes/failures

events handler to notify Sbt of successes/failures

Attributes

def eventsOnly: Boolean

specifies if only sbt events must be emitted

specifies if only sbt events must be emitted

Attributes

def loggers: Array[Logger]

sbt loggers to display text

sbt loggers to display text

Attributes

Concrete methods

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

use 2 Folds:

use 2 Folds:

  • one for logging messages to the console
  • one for registering sbt events

Attributes

def textSink(env: Env, spec: SpecStructure): AsyncSink[Fragment]

Inherited 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

Inherited from:
Printer

Concrete fields

lazy val textPrinter: TextPrinter.type