org.specs2.reporter

Members list

Type members

Classlikes

This line logger tries to respect line breaks in the original text.

This line logger tries to respect line breaks in the original text.

So if the original text is: Hello world\nHow are you? and we call infoLog("Hello world\n"); infoLog("How are you?")

Then there will be only 2 lines displayed and not 3 (2 for the first infoLog, 1 for the second one)

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ConsoleNotifier extends Notifier

Notifier that prints out to the console

Notifier that prints out to the console

Attributes

Supertypes
trait Notifier
class Object
trait Matchable
class Any
case class CustomInstances(env: Env, loader: ClassLoader, logger: Logger)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class DefaultReporter(statistics: Statistics, statisticsRepository: StatisticsRepository, selector: Selector, executor: Executor, printers: List[Printer], env: Env) extends Reporter

Default implementation of a Reporter using specs2 Printers

Default implementation of a Reporter using specs2 Printers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Reporter
class Object
trait Matchable
class Any
Show all
case object EmptyLine extends LogLine

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait LogLine
class Object
trait Matchable
class Any
Show all
Self type
EmptyLine.type
case class ErrorLine(s: String) extends LogLine

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LogLine
class Object
trait Matchable
class Any
Show all
case class FailureLine(s: String) extends LogLine

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LogLine
class Object
trait Matchable
class Any
Show all
case class InfoLine(s: String) extends LogLine

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LogLine
class Object
trait Matchable
class Any
Show all
sealed trait LogLine

ADT for logging strings as info, warning or errors

ADT for logging strings as info, warning or errors

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object EmptyLine.type
class ErrorLine
class FailureLine
class InfoLine
object LogLine

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
LogLine.type
case class MarkdownOptions(outDir: DirectoryPath, extension: String)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class MarkdownPrinter(env: Env) extends Printer

This trait is not a full fledged markdown printer yet

This trait is not a full fledged markdown printer yet

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait NoStdOut

This trait allows to remove any console display during the execution of an example

This trait allows to remove any console display during the execution of an example

Of course it needs to be understood that the output might be completely messed up when executing specifications and examples concurrently

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NoStdOut.type
object NoStdOut extends NoStdOut

Attributes

Companion
trait
Supertypes
trait NoStdOut
class Object
trait Matchable
class Any
Self type
NoStdOut.type

This trait allows to remove any console display during the execution of the examples of a Specification

This trait allows to remove any console display during the execution of the examples of a Specification

Attributes

Supertypes
trait AroundEach
class Object
trait Matchable
class Any
trait Notifier

This trait can be used for any event concerning the execution of examples seen as a Tree of Fragments.

This trait can be used for any event concerning the execution of examples seen as a Tree of Fragments.

A pair of contextStart/contextEnd calls delimits a sequence of children in that tree.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class NotifierPrinter(commandLineArguments: Arguments)

A Printer can be created from a Notifier implementation

A Printer can be created from a Notifier implementation

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object NullOutputStream extends OutputStream

Attributes

Supertypes
class OutputStream
trait Flushable
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all
Self type
trait Printer

A Printer is essentially defined by a FoldM sink that:

A Printer is essentially defined by a FoldM sink that:

  • can run a AsyncStream[Fragment]
  • uses an AsyncSink for side-effects and
  • accumulates state for final reporting

See TextPrinter for an example of such a Printer

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Printer

specs2 built-in printers and creation methods based on the command line arguments

specs2 built-in printers and creation methods based on the command line arguments

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Printer.type
case class PrinterFactory(arguments: Arguments, customInstances: CustomInstances, logger: Logger)

Create printers based on their class names and the arguments passed by the user Note that this operation might fail if the corresponding printer classes are not on the class path

Create printers based on their class names and the arguments passed by the user Note that this operation might fail if the corresponding printer classes are not on the class path

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Logger with info, failure, error where each new message is displayed on a new line

Logger with info, failure, error where each new message is displayed on a new line

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PrinterLogger

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait Reporter

A reporter executes a list of specification and return statistics representing the execution results.

A reporter executes a list of specification and return statistics representing the execution results.

A full list of specification is passed instead of just one specification because it gives the possibility to the reporter to prepare and finalize the reporting according to the needs of each Printer (see the Printer doc)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Reporter

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Reporter.type
trait SbtEvents

Sbt events for a given TaskDef and event handler

Sbt events for a given TaskDef and event handler

Attributes

Supertypes
class Object
trait Matchable
class Any
case class SbtPrinter(env: Env, loggers: Array[Logger], events: SbtEvents, eventsOnly: Boolean) extends Printer

Text printer for Sbt

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
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer
class Object
trait Matchable
class Any
Show all
object SbtPrinter

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SbtPrinter.type
case class SbtPrinterLogger(loggers: Array[Logger]) extends BufferedPrinterLogger

Line logger using sbt's loggers

Line logger using sbt's loggers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait SilentNotifier extends Notifier

Notifier which does not notify at all

Notifier which does not notify at all

It can be subclassed so that just one method is overridden

Attributes

Supertypes
trait Notifier
class Object
trait Matchable
class Any
case class TextPrinter(env: Env) extends Printer

Prints the result of a specification execution to the console (using the line logger provided by the environment)

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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer
class Object
trait Matchable
class Any
Show all
object TextPrinter

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object noOut extends PrintStream

Attributes

Supertypes
class PrintStream
trait Appendable
class FilterOutputStream
class OutputStream
trait Flushable
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all
Self type
noOut.type
object stdOut extends PrintStream

Attributes

Supertypes
class PrintStream
trait Appendable
class FilterOutputStream
class OutputStream
trait Flushable
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all
Self type
stdOut.type