org.specs2.reporter

ConsoleReporter

trait ConsoleReporter extends DefaultReporter with TextExporting with ConsoleOutput

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 * ConsoleOutput specifies that the output must be the standard output console

Linear Supertypes
ConsoleOutput, Output, TextExporting, TextPrinter, DefaultReporter, DefaultStoring, Statistics, DefaultExecutionStrategy, FragmentExecution, DefaultSequence, DefaultSelection, WithDefaultStatisticsRepository, WithStatisticsRepository, Reporter, Exporting, Storing, ExecutionStrategy, Sequence, Selection, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ConsoleReporter
  2. ConsoleOutput
  3. Output
  4. TextExporting
  5. TextPrinter
  6. DefaultReporter
  7. DefaultStoring
  8. Statistics
  9. DefaultExecutionStrategy
  10. FragmentExecution
  11. DefaultSequence
  12. DefaultSelection
  13. WithDefaultStatisticsRepository
  14. WithStatisticsRepository
  15. Reporter
  16. Exporting
  17. Storing
  18. ExecutionStrategy
  19. Sequence
  20. Selection
  21. AnyRef
  22. Any
Visibility
  1. Public
  2. All

Type Members

  1. type ExportType = Unit

    Definition Classes
    TextExporting → Exporting
  2. trait Print extends AnyRef

    Attributes
    sealed
  3. case class PrintBr () extends Print with Product with Serializable

  4. case class PrintLine (text: Print, stats: Stats, level: Int, args: Arguments) extends Product with Serializable

  5. case class PrintLines (lines: List[PrintLine]) extends Product with Serializable

  6. case class PrintOther (fragment: ExecutedFragment) extends Print with Product with Serializable

  7. case class PrintResult (r: ExecutedResult) extends Print with Product with Serializable

  8. case class PrintSpecEnd (end: ExecutedSpecEnd, endStats: Stats) extends Print with Product with Serializable

  9. case class PrintSpecStart (start: ExecutedSpecStart) extends Print with Product with Serializable

  10. case class PrintText (t: ExecutedText) extends Print with Product with Serializable

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object PrintReducer extends Reducer[ExecutedFragment, List[Print]]

    Attributes
    implicit
  7. implicit def SpecStatsMonoid : Monoid[SpecStats]

    Attributes
    implicit
    Definition Classes
    Statistics
  8. implicit def SpecsStatisticsMonoid : Monoid[SpecsStatistics]

    Attributes
    implicit
    Definition Classes
    Statistics
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def execute (implicit arguments: Arguments): (Seq[FragmentSeq]) ⇒ List[ExecutedFragment]

    execute sequences of Fragments.

    execute sequences of Fragments.

    If the stopOnFail argument is true, we check that the execution is ok before executing the next sequence.

    Definition Classes
    DefaultExecutionStrategy → ExecutionStrategy
  14. def execute (f: Fragment)(implicit arguments: Arguments = Arguments()): Product with Serializable with ExecutedFragment

    execute a Fragment.

    execute a Fragment.

    A Form is executed separately by executing each row and cell, setting the results on each cell

    Definition Classes
    FragmentExecution
  15. def executeBody (body: ⇒ Result)(implicit arguments: Arguments): Result

    This method could be overriden to provide alternate behavior when executing an Example

    This method could be overriden to provide alternate behavior when executing an Example

    Definition Classes
    FragmentExecution
  16. def executeFragment (implicit arguments: Arguments): Function[Fragment, ExecutedFragment]

    execute a Fragment.

    execute a Fragment.

    Definition Classes
    FragmentExecution
  17. def export (s: SpecificationStructure)(implicit args: Arguments): (Seq[ExecutedFragment]) ⇒ Unit

    returns

    a function exporting ExecutedFragments

    Definition Classes
    TextExporting → Exporting
  18. def filter (implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[Fragment]

    returns

    filter fragments depending on the command line arguments and the current arguments in the specification

    Definition Classes
    DefaultSelection
  19. def filterExamples (implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[Fragment]

    the filter method filters examples based on their description, keeping only the ones matching the ex attribute of the arguments object

    the filter method filters examples based on their description, keeping only the ones matching the ex attribute of the arguments object

    Attributes
    protected
    Definition Classes
    DefaultSelection
  20. def filterPrevious (implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[(Fragment, Arguments, SpecName)]

    returns

    filter fragments according to their previous execution state

    Definition Classes
    DefaultSelection
  21. def filterTags (implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[(Fragment, Arguments, SpecName)]

    returns

    filter fragments according to tags by collecting tags as applicable to each fragment and applying them

    Definition Classes
    DefaultSelection
  22. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def flatten (results: (((List[Print], SpecStats), Levels[ExecutedFragment]), SpecsArguments[ExecutedFragment]))(implicit commandLineArgs: Arguments = Arguments()): List[PrintLine]

    Definition Classes
    TextPrinter
  24. def flush (): Unit

    flush the content if necessary

    flush the content if necessary

    Definition Classes
    ConsoleOutput → Output
  25. def foldAll (fs: Seq[ExecutedFragment]): SpecsStatistics

    Definition Classes
    Statistics
  26. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  27. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  28. def includePrevious (specName: SpecName, e: Example, args: Arguments): Boolean

    Attributes
    protected
    Definition Classes
    DefaultSelection
  29. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  30. def isolateSteps (fragments: Seq[Fragment])(implicit arguments: Arguments): Seq[FragmentSeq]

    Attributes
    protected
    Definition Classes
    DefaultSequence
  31. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  34. val output : ResultOutput

    Definition Classes
    TextPrinter
  35. def print (m: Any): Unit

    print an object with no newline

    print an object with no newline

    Definition Classes
    Output
  36. def print (s: SpecificationStructure, fs: Seq[ExecutedFragment])(implicit commandLineArgs: Arguments): Unit

    Definition Classes
    TextPrinter
  37. def printLines (fs: Seq[ExecutedFragment])(implicit commandLineArgs: Arguments = Arguments()): PrintLines

    Definition Classes
    TextPrinter
  38. def printStackTrace (t: Throwable): Unit

    print stacktraces

    print stacktraces

    Definition Classes
    Output
  39. def printf (s: String, args: Any*): Unit

    print several objects according to a format string (see Console.

    print several objects according to a format string (see Console.printf)

    Definition Classes
    ConsoleOutput → Output
  40. def println (m: Any): Unit

    print an object with a newline

    print an object with a newline

    Definition Classes
    Output
  41. def report (spec: SpecificationStructure)(implicit arguments: Arguments): ConsoleReporter.this.type

    report Fragments by: * extracting arguments from the Fragments * selecting them * sequencing fragments in groups * executing fragments * exporting the results to the output format

    report Fragments by: * extracting arguments from the Fragments * selecting them * sequencing fragments in groups * executing fragments * exporting the results to the output format

    returns

    the reporter

    Definition Classes
    Reporter
  42. lazy val repository : StatisticsRepository

    Attributes
    protected
    Definition Classes
    WithDefaultStatisticsRepository → WithStatisticsRepository
  43. def select (fragments: Seq[Fragment])(implicit commandLineArgs: Arguments = Arguments()): Seq[Fragment]

    select function returning a filtered seq of Fragments

    select function returning a filtered seq of Fragments

    Definition Classes
    DefaultSelection
  44. def select (implicit arguments: Arguments): (Fragments) ⇒ Seq[Fragment]

    select function returning a filtered seq of Fragments

    select function returning a filtered seq of Fragments

    Definition Classes
    DefaultSelection
  45. def sequence (fragments: Seq[Fragment])(implicit arguments: Arguments = Arguments()): Seq[FragmentSeq]

    the sequence method returns sequences of fragments which can be executed concurrently.

    the sequence method returns sequences of fragments which can be executed concurrently. Among the constraints to respect, any Step Fragment must be executed before any following Example Fragment, so that "first" and "last" actions are executed properly in a Specification

    If the arguments specify that the specification is sequential, then each fragment will be executed individually

    Definition Classes
    DefaultSequence
  46. def sequence (implicit arguments: Arguments): (Seq[Fragment]) ⇒ Seq[FragmentSeq]

    sequence function returning an ordered seq of seq of Fragments

    sequence function returning an ordered seq of seq of Fragments

    Definition Classes
    DefaultSequence
  47. def setStatsOnSpecEndFragments (implicit args: Arguments): ((ExecutedFragment, Stats)) ⇒ ExecutedFragment

    set the statistics on SpecEndFragments after they've been computed by the StatisticsReducer Those statistics are updated from previously executed statistics to calculate trends

    set the statistics on SpecEndFragments after they've been computed by the StatisticsReducer Those statistics are updated from previously executed statistics to calculate trends

    Definition Classes
    DefaultStoring
  48. def store (implicit args: Arguments): (Seq[ExecutedFragment]) ⇒ Seq[ExecutedFragment]

    returns

    a function storing ExecutedFragments

    Definition Classes
    DefaultStoring → Storing
  49. def storeResults : ((SpecName, Seq[(SpecName, ExecutedResult)])) ⇒ ConsoleReporter.this.repository.type

    store the results by spec name

    store the results by spec name

    Attributes
    protected
    Definition Classes
    DefaultStoring
  50. def storeStats : ((ExecutedFragment, SpecName)) ⇒ ExecutedFragment

    store the statistics: * for SpecEnd -> put the stats in the repository * for a SpecStart that's a link -> read the status of the previous execution

    store the statistics: * for SpecEnd -> put the stats in the repository * for a SpecStart that's a link -> read the status of the previous execution

    Attributes
    protected
    Definition Classes
    DefaultStoring
  51. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  52. def tags (fragments: Seq[Fragment]): Seq[TaggingFragment]

    From a Seq of Fragments create a seq of corresponding tags for each fragment, considering that:

    From a Seq of Fragments create a seq of corresponding tags for each fragment, considering that:

    * a TaggedAs fragment is applicable to the the previous fragment * a Tag fragment is applicable to the the next fragment * a AsSection fragment is applicable to the the previous fragment to the next AsSection fragment with the same name * a Section fragment is applicable to the the next fragment to the next Section fragment with the same name

    Definition Classes
    DefaultSelection
  53. def toString (): String

    Definition Classes
    AnyRef → Any
  54. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  55. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  56. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ConsoleOutput

Inherited from Output

Inherited from TextExporting

Inherited from TextPrinter

Inherited from DefaultReporter

Inherited from DefaultStoring

Inherited from Statistics

Inherited from DefaultExecutionStrategy

Inherited from FragmentExecution

Inherited from DefaultSequence

Inherited from DefaultSelection

Inherited from WithDefaultStatisticsRepository

Inherited from WithStatisticsRepository

Inherited from Reporter

Inherited from Exporting

Inherited from Storing

Inherited from ExecutionStrategy

Inherited from Sequence

Inherited from Selection

Inherited from AnyRef

Inherited from Any