package reporter
- Alphabetic
- Public
- All
Type Members
-
trait
BufferedLineLogger extends LineLogger
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)
-
class
ConsoleNotifier extends Notifier
Notifier that prints out to the console
- case class ErrorLine(s: String) extends LogLine with Product with Serializable
- case class FailureLine(s: String) extends LogLine with Product with Serializable
-
trait
HtmlBodyPrinter extends AnyRef
Create the body of an html file reporting a specification execution
-
case class
HtmlOptions(outDir: DirectoryPath, baseDir: DirectoryPath, template: FilePath, variables: Map[String, String], noStats: Boolean, search: Boolean, warnMissingSeeRefs: Boolean, tocEntryMaxSize: Int, toc: Boolean) extends Product with Serializable
Options for the Html generation
-
trait
HtmlPrinter extends Printer
Printer for html files
- trait HtmlUrls extends AnyRef
- case class InfoLine(s: String) extends LogLine with Product with Serializable
-
trait
JUnitDescriptions extends ExecutionOrigin
Create Description objects from the specification fragments and arrange them as a tree
- case class JUnitDescriptionsTree(spec: SpecStructure, ee: ExecutionEnv) extends Product with Serializable
-
trait
JUnitPrinter extends Printer
The JUnitPrinter sends notifications to JUnit's RunNotifier
-
trait
JUnitXmlPrinter extends Printer
The JUnitXmlPrinter creates an xml file with the specification execution results
-
trait
LineLogger extends AnyRef
Logger with info, failure, error where each new message is displayed on a new line
-
sealed
trait
LogLine extends AnyRef
ADT for logging strings as info, warning or errors
- case class MarkdownOptions(outDir: DirectoryPath, extension: String) extends Product with Serializable
-
trait
MarkdownPrinter extends Printer
This trait is not a full fledged markdown printer yet
-
trait
NoStdOut extends Around
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
-
trait
NoStdOutAroundEach extends AroundEach
This trait allows to remove any console display during the execution of the examples of a Specification
-
trait
Notifier extends AnyRef
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.
-
case class
Pandoc(verbose: Boolean, executable: FilePath, inputFormat: String, outputFormat: String) extends Product with Serializable
Representation of the Pandoc executable
-
trait
Printer extends AnyRef
A Printer is essentially defined by a FoldM sink that:
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
-
trait
Reporter extends AnyRef
A reporter is responsible for
A reporter is responsible for
- selecting printers based on the command-line arguments
- executing the specification
- passing it to each printer for printing
It is also responsible for saving the specification state at the end of the run
-
trait
SbtEvents extends AnyRef
Sbt events for a given TaskDef and event handler
-
case class
SbtLineLogger(loggers: Array[Logger]) extends BufferedLineLogger with Product with Serializable
Line logger using sbt's loggers
-
trait
SbtPrinter 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
-
trait
SearchPage extends AnyRef
Functions used to create an index and a search page for the generated html pages
-
trait
ShowDescription extends AnyRef
Implementation of the Show trait to allow the drawing of Tree[Description]
-
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
-
class
SpecFailureAssertionFailedError extends AssertionFailedError
This class refines the
AssertionFailedError
from junit and provides the stackTrace of an exception which occurred during the specification execution -
trait
TextPrinter 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.
Value Members
- object EmptyLine extends LogLine with Product with Serializable
- object HtmlBodyPrinter extends HtmlBodyPrinter
- object HtmlOptions extends Serializable
- object HtmlPrinter extends HtmlPrinter
- object HtmlUrls extends HtmlUrls
- object JUnitDescriptions extends JUnitDescriptions
- object JUnitXmlPrinter extends JUnitXmlPrinter
- object LineLogger
- object LogLine
- object MarkdownOptions extends Serializable
- object MarkdownPrinter extends MarkdownPrinter
- object NoStdOut extends NoStdOut
-
object
NotifierPrinter
A Printer can be created from a Notifier implementation
- object NullOutputStream extends OutputStream
- object Pandoc extends Serializable
-
object
Printer
specs2 built-in printers and creation methods based on the command line arguments
- object Reporter extends Reporter
- object SbtPrinter
- object SearchPage extends SearchPage
- object ShowDescription extends ShowDescription
- object TextPrinter extends TextPrinter
- object noOut extends PrintStream
- object stdOut extends PrintStream