Package

org.specs2

reporter

Permalink

package reporter

Visibility
  1. Public
  2. All

Type Members

  1. trait AllExporting extends Reporter with Exporters

    Permalink

    This trait can be mixed in a reporter to allow the exporting of an executed specification to many different formats: html, junit xml, markdown, custom,...

  2. trait ConsoleNotifier extends Notifier

    Permalink
  3. trait ConsoleReporter extends DefaultReporter with TextExporting

    Permalink

    The console reporter executes a Specification and exports the results to the Console Output:

    The console reporter executes a Specification and exports the results to the Console Output:

    - DefaultSelection filters and sorts the Fragments - DefaultExecutionStrategy executes the Examples concurrently by default - TextExporting prints the results in a Tree manner (using a TextOutput)

  4. trait DefaultExecutionStrategy extends ExecutionStrategy with FragmentExecution

    Permalink

    This trait uses Scalaz promises to execute Fragments concurrently

    This trait uses Scalaz promises to execute Fragments concurrently

    It uses a Fixed thread pool with a number of threads to execute the fragments. The default number is the number of available threads by default but this can be overridden by providing different Arguments

  5. trait DefaultReporter extends Reporter with Executor with DefaultSelection with DefaultSequence with DefaultExecutionStrategy with DefaultStoring

    Permalink
  6. trait DefaultSelection extends ExamplesIsolation with TagSelection with StatusSelection with ExamplesSelection with Selection

    Permalink

    The DefaultSelection trait filters the fragments to execute by filtering Examples:

    The DefaultSelection trait filters the fragments to execute by filtering Examples:

    - by tags - according to their names - according to their previous execution

    If the isolated argument is passed, then each example is executed in its own copy of the specification

  7. trait DefaultSequence extends AnyRef

    Permalink

    The DefaultSequence trait sorts the Fragments by making sure Steps will be executed before Examples

  8. trait DefaultStatisticsRepository extends StatisticsRepository with OutputDir

    Permalink

    This repository store the results in one file per specification, in a special directory

    This repository store the results in one file per specification, in a special directory

    This solution is preferred over having a single file for all specifications because of the possible concurrent execution of specifications

  9. trait DefaultStoring extends Storing with Statistics with WithDefaultStatisticsRepository

    Permalink
  10. case class EndOfArguments[T](value: T, name: SpecName) extends ApplicableArguments[T] with Product with Serializable

    Permalink
  11. trait Events extends AnyRef

    Permalink
  12. trait ExamplesIsolation extends AnyRef

    Permalink

    This trait "isolates" examples by replacing their body with another one, created from a clone of the specification.

  13. trait ExamplesSelection extends AnyRef

    Permalink

    This trait filters examples based on their description

  14. case class ExecutableSpecification(name: SpecName, arguments: Arguments, fs: Seq[FragmentSeq]) extends Product with Serializable

    Permalink

    this case class transports the fragments to execute, grouped in sequences of examples which can be executed concurrently

  15. trait Executor extends DefaultSelection with DefaultSequence with DefaultExecutionStrategy with DefaultStoring

    Permalink
  16. trait Exporter extends Exporting

    Permalink

    public trait to create a custom exporter

  17. case class FinalResultsExporter(taskDef: TaskDef, handler: EventHandler, loggers: Array[Logger]) extends SbtExporter with Product with Serializable

    Permalink

    This reporter will just notify the test interface about test results for the end statistics

    This reporter will just notify the test interface about test results for the end statistics

    It is only used if we are not using the Console exporter

  18. case class FragmentSeq(fragments: Seq[Fragment], arguments: Arguments) extends Product with Serializable

    Permalink
  19. trait HandlerEvents extends AnyRef

    Permalink

    Specific events which can be notified to sbt

  20. case class Levels[T](levelsSeq: Vector[Level[T]] = Vector[Level[T]]()) extends Product with Serializable

    Permalink

    This class computes the 'level' of a given fragment.

    This class computes the 'level' of a given fragment. It is used to indent Fragments in a ConsoleReporter and to create a tree or Descriptions in the JUnit runner

    It does so by considering that some fragments have an effect on the indentation of the next fragment

    - a Text fragment is an Indent(1) so it indents the next fragment once - a Tab(n) fragment is an Indent(n) so it indents the next fragment n times - a Backtab(n) fragment is an Unindent(n) so it un-indents the next fragment n times - an Example fragment is a Terminal(), it doesn't do anything. This means that 2 consecutive examples will stay at the same level - an End fragment is a Reset, it set the level of the next fragment to 0 level

  21. trait LineLogger extends AnyRef

    Permalink

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

  22. trait LineLoggerOutput extends ResultOutput with LineLogger

    Permalink

    This outputs the textual results of an executed specification to a LineLogger

  23. trait MessagesNotifier extends Notifier with StringOutput

    Permalink
  24. trait NoExporting extends Exporter

    Permalink

    Null implementation for the Exporting trait

  25. class NoResultOutput extends ResultOutput

    Permalink

    This output can be used for testing

  26. case class NoStartOfArguments[T](value: T) extends ApplicableArguments[T] with Product with Serializable

    Permalink
  27. trait NoStdOut extends Around

    Permalink

    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

  28. trait NoStdOutAroundExample extends AroundExample

    Permalink

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

  29. trait Notifier extends AnyRef

    Permalink

    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.

  30. trait NotifierExporting extends Exporting with Exporters

    Permalink
  31. trait NotifierReporter extends DefaultReporter with NotifierExporting

    Permalink

    Report a Specification by notifying execution events to a Notifier

  32. trait Reporter extends Selection with Sequence with ExecutionStrategy with Storing with Exporting

    Permalink

    A Reporter will report the execution of a Specification following 3 steps:

    A Reporter will report the execution of a Specification following 3 steps:

    1. an extraction of the Fragments to report (like creating Descriptions for JUnit)

    • filtering out some elements if necessary

    2. an ordering of the Fragments to execute:

    • action steps must be executed in order
    • dependency between Fragments can be specified
    • other Fragments can be executed concurrently (unless specified otherwise)

    3. a reporting to:

    • the console (ConsoleRunner or sbt)
    • a listener object (junit or sbt)
    • a file (html, xml, junit-report)
  33. trait ResultOutput extends AnyRef

    Permalink

    This traits provides specialised print methods for message representing different types of results.

    This traits provides specialised print methods for message representing different types of results. They can be overridden to define a more specific behaviour.

  34. class SbtConsoleReporter extends ConsoleReporter with AllExporting

    Permalink

    Reporter for the test interface defined for sbt

    Reporter for the test interface defined for sbt

    It prints out the result to the output defined by the sbt loggers and publishes events to sbt event handlers

  35. class SbtExporter extends TextExporting with Events

    Permalink
  36. trait SbtLoggers extends AnyRef

    Permalink
  37. class SbtResultOutput extends LineLoggerOutput with SbtLoggers

    Permalink
  38. trait Selection extends AnyRef

    Permalink

    The Selection trait implements the logic for filtering the fragments to execute

  39. trait Sequence extends AnyRef

    Permalink

    The Sequence trait implements the logic for the fragments to execute according to their dependencies

  40. case class StartOfArguments[T](value: T, name: SpecName, args: Arguments) extends ApplicableArguments[T] with Product with Serializable

    Permalink
  41. trait StatisticsRepository extends AnyRef

    Permalink
  42. trait StatusSelection extends WithDefaultStatisticsRepository

    Permalink

    This trait selects examples based on their previous execution

  43. trait Storing extends AnyRef

    Permalink

    This trait stores the results of an executed specification It also updates the statistics of:

    This trait stores the results of an executed specification It also updates the statistics of:

    • SpecStart fragments from SpecEnd fragments
  44. trait TagSelection extends TagsAssociation

    Permalink

    This trait selects fragments based on their tags

  45. class TestInterfaceReporter extends ConsoleReporter with HandlerEvents

    Permalink

    Reporter for the test interface defined for sbt

    Reporter for the test interface defined for sbt

    It prints out the result to the output defined by the sbt loggers and publishes events to sbt event handlers

  46. class TestInterfaceResultOutput extends LineLoggerOutput with TestLoggers

    Permalink
  47. trait TestLoggers extends AnyRef

    Permalink
  48. trait TextExporting extends TextPrinter with Exporting

    Permalink

    This trait prints the executed fragments results and statistics at the end of the specification

  49. trait TextPrinter extends AnyRef

    Permalink

    This trait reduces a list of ExecutedFragments to a list of PrintLines.

    This trait reduces a list of ExecutedFragments to a list of PrintLines.

    Each line contains: - A description (text or example description) - A level, to work out the indenting - Some statistics, to print on SpecEnd - The current arguments, to control the conditional printing of text, statistics,...

  50. class TextReporter extends DefaultReporter with TextExporting

    Permalink

    This reporter can be used to get the result of a specification execution as a String

  51. class TextResultOutput extends LineLoggerOutput with ConsoleOutput

    Permalink

    Implementation of the ResultOutput trait as Text

Value Members

  1. object ApplicableArguments

    Permalink
  2. object ConsoleNotifier extends ConsoleNotifier

    Permalink
  3. object DefaultSelection extends DefaultSelection

    Permalink
  4. object FragmentSeq extends Product with Serializable

    Permalink
  5. object HandlerEvents extends HandlerEvents

    Permalink
  6. object MessagesNotifier extends MessagesNotifier

    Permalink
  7. object NoExporting extends NoExporting

    Permalink
  8. object NoStdOut extends NoStdOut

    Permalink
  9. object NullOutputStream extends OutputStream

    Permalink
  10. object TextExporting extends TextExporting

    Permalink
  11. object noOut extends PrintStream

    Permalink
  12. object stdOut extends PrintStream

    Permalink

Ungrouped