org.specs2.reporter

SbtConsoleReporter

class SbtConsoleReporter extends ConsoleReporter with AllExporting

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SbtConsoleReporter
  2. AllExporting
  3. Exporters
  4. ConsoleReporter
  5. TextExporting
  6. TextPrinter
  7. DefaultReporter
  8. Executor
  9. DefaultStoring
  10. Statistics
  11. DefaultExecutionStrategy
  12. FragmentExecution
  13. DefaultSequence
  14. DefaultSelection
  15. ExamplesSelection
  16. StatusSelection
  17. WithDefaultStatisticsRepository
  18. WithStatisticsRepository
  19. TagSelection
  20. TagsAssociation
  21. ExamplesIsolation
  22. Reporter
  23. Exporting
  24. Storing
  25. ExecutionStrategy
  26. Sequence
  27. Selection
  28. AnyRef
  29. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SbtConsoleReporter(consoleExporter: Option[Exporting], otherExporters: (Arguments) ⇒ Seq[Exporting])

Type Members

  1. type EE = (ExecutingSpecification) ⇒ ExecutedSpecification

    Definition Classes
    Exporters
  2. sealed trait Print extends AnyRef

    Definition Classes
    TextPrinter
  3. case class PrintBr() extends Print with Product with Serializable

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

    Definition Classes
    TextPrinter
  5. case class PrintOther(fragment: ExecutedFragment) extends Print with Product with Serializable

    Definition Classes
    TextPrinter
  6. case class PrintResult(result: () ⇒ ExecutedFragment) extends Print with Product with Serializable

    Definition Classes
    TextPrinter
  7. case class PrintSpecEnd(end: ExecutedSpecEnd, endStats: Stats) extends Print with Product with Serializable

    Definition Classes
    TextPrinter
  8. case class PrintSpecStart(start: ExecutedSpecStart) extends Print with Product with Serializable

    Definition Classes
    TextPrinter
  9. case class PrintText(t: ExecutedText) extends Print with Product with Serializable

    Definition Classes
    TextPrinter
  10. case class SpecStats extends Product with Serializable

    The SpecsStats class just stores a list of stats, each one corresponding to a Fragment

    The SpecsStats class just stores a list of stats, each one corresponding to a Fragment

    Definition Classes
    Statistics
  11. case class SpecsStatistics extends Product with Serializable

    The SpecsStatistics class stores the result of a specification execution, with the a list of 'current' stats for each fragment execution and the total statistics for the whole specification

    The SpecsStatistics class stores the result of a specification execution, with the a list of 'current' stats for each fragment execution and the total statistics for the whole specification

    Definition Classes
    Statistics
  12. type ToPrint = (((Stream[Print], Statistics.SpecsStatistics), Levels[Fragment]), SpecsArguments[ExecutingFragment])

    Definition Classes
    TextPrinter

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. val ExecutedStatisticsReducer: Reducer[ExecutedFragment, SpecsStatistics]

    Definition Classes
    Statistics
  7. implicit val PrintReducer: Reducer[ExecutingFragment, Stream[Print]]

    Definition Classes
    TextPrinter
  8. implicit def SpecStatsMonoid: Monoid[SpecStats] { val zero: SbtConsoleReporter.this.SpecStats }

    Definition Classes
    Statistics
  9. object SpecsStatistics extends Product with Serializable

    Definition Classes
    Statistics
  10. implicit def SpecsStatisticsMonoid: Monoid[SpecsStatistics] { val zero: SbtConsoleReporter.this.SpecsStatistics }

    Definition Classes
    Statistics
  11. val StatisticsReducer: Reducer[ExecutingFragment, SpecsStatistics]

    Definition Classes
    Statistics
  12. val StatsReducer: Reducer[ExecutingFragment, SpecStats]

    Definition Classes
    Statistics
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def copyBody(name: SpecName, f: Fragment, body: ⇒ Result)(implicit arguments: Arguments): Result

    returns

    an Example which body comes from the execution of that example in a brand new instance of the Specification

    Attributes
    protected
    Definition Classes
    ExamplesIsolation
  16. def customExporter(arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  17. def delegate(arguments: Arguments): Option[Executor]

    Definition Classes
    Executor
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def execute(implicit arguments: Arguments): (ExecutableSpecification) ⇒ ExecutingSpecification

    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
    DefaultReporterDefaultExecutionStrategy → ExecutionStrategy
  21. 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
  22. 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
  23. def executeConcurrently(fs: FragmentSeq, barrier: ⇒ Any, args: Arguments)(implicit strategy: Strategy): Seq[Product with Serializable with ExecutingFragment { def map(function: org.specs2.specification.ExecutedFragment => org.specs2.specification.ExecutedFragment): Product with Serializable with org.specs2.specification.ExecutingFragment }]

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

    execute a Fragment.

    execute a Fragment.

    Definition Classes
    FragmentExecution
  25. def executeRandomly(fs: FragmentSeq, args: Arguments): Seq[FinishedExecutingFragment]

    Definition Classes
    DefaultExecutionStrategy
  26. def executeSequence(fs: FragmentSeq, barrier: ⇒ Any)(implicit args: Arguments, strategy: Strategy): Seq[ExecutingFragment]

    Definition Classes
    DefaultExecutionStrategy
  27. def executeSequentially(fs: FragmentSeq, args: Arguments): Seq[FinishedExecutingFragment]

    Definition Classes
    DefaultExecutionStrategy
  28. def export(implicit arguments: Arguments): (ExecutingSpecification) ⇒ ExecutedSpecification

    returns

    a function exporting an ExecutingSpecification

    Definition Classes
    AllExporting → Exporting
  29. def exportAll(exporters: Seq[Exporting])(implicit arguments: Arguments): EE

    Definition Classes
    Exporters
  30. def exportAll(args: Arguments, accept: (String) ⇒ Boolean): EE

    Definition Classes
    Exporters
  31. def exportAll(arguments: Arguments): EE

    Definition Classes
    Exporters
  32. def exportConsole(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Option[Exporting]

    Definition Classes
    SbtConsoleReporter → Exporters
  33. def exportCustom(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  34. def exportHtml(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  35. def exportJUnitxml(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  36. def exportMarkdown(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  37. def exportNotifier(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  38. def exporter(condition: Boolean)(e: ⇒ Exporting): Option[Exporting]

    Attributes
    protected
    Definition Classes
    Exporters
  39. def exporters(accept: (String) ⇒ Boolean)(implicit arguments: Arguments): Seq[Exporting]

    Definition Classes
    SbtConsoleReporter → Exporters
  40. def exporters(implicit arguments: Arguments): Seq[Exporting]

    Definition Classes
    Exporters
  41. 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
  42. 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
    ExamplesSelection
  43. def filterPrevious(implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[(Fragment, Arguments, SpecName)]

    returns

    fragments according to their previous execution state

    Definition Classes
    StatusSelection
  44. 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
    TagSelection
  45. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  46. def foldAll(fs: Seq[ExecutingFragment]): SpecsStatistics

    Definition Classes
    Statistics
  47. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  48. def hashCode(): Int

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

    Attributes
    protected
    Definition Classes
    StatusSelection
  50. def isConsole(args: Arguments): Boolean

    Definition Classes
    Exporters
  51. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  52. def isolateExamples(implicit arguments: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[Fragment]

    This function "clones" the body of each example if the applicable arguments indicate that the specification should be isolated

    This function "clones" the body of each example if the applicable arguments indicate that the specification should be isolated

    Attributes
    protected
    Definition Classes
    ExamplesIsolation
  53. def isolateSteps(fragments: Seq[Fragment])(implicit arguments: Arguments): Seq[FragmentSeq]

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

    Definition Classes
    AnyRef
  55. def notifierExporter(arguments: Arguments): Option[Exporting]

    Definition Classes
    Exporters
  56. final def notify(): Unit

    Definition Classes
    AnyRef
  57. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  58. def optionalExporter(condition: Boolean)(e: Option[Exporting]): Option[Exporting]

    Attributes
    protected
    Definition Classes
    Exporters
  59. def print(name: SpecName, fs: Seq[ExecutingFragment])(implicit commandLineArgs: Arguments): (((Stream[Print], Statistics.SpecsStatistics), Levels[Fragment]), SpecsArguments[ExecutingFragment])

    Definition Classes
    TextPrinter
  60. def printIO(output: ResultOutput)(implicit args: Arguments): (ToPrint) ⇒ ToPrint

    print a line to the output

    print a line to the output

    Definition Classes
    TextPrinter
  61. def report(spec: SpecificationStructure)(implicit arguments: Arguments): ExecutedSpecification

    report Fragments by:

    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
    AllExportingReporter
  62. lazy val repository: StatisticsRepository

    Attributes
    protected
    Definition Classes
    WithDefaultStatisticsRepository → WithStatisticsRepository
  63. def select(implicit arguments: Arguments): (SpecificationStructure) ⇒ SpecificationStructure

    select function returning a filtered seq of Fragments

    select function returning a filtered seq of Fragments

    Definition Classes
    DefaultReporterDefaultSelectionSelection
  64. def select(fragments: Seq[Fragment])(implicit arguments: Arguments = Arguments()): Seq[Fragment]

    select function returning a filtered seq of Fragments

    select function returning a filtered seq of Fragments

    Definition Classes
    DefaultSelection
  65. def sequence(implicit arguments: Arguments): (SpecificationStructure) ⇒ ExecutableSpecification

    sequence function returning an ordered seq of seq of Fragments

    sequence function returning an ordered seq of seq of Fragments

    Definition Classes
    DefaultReporterDefaultSequenceSequence
  66. def sequence(specName: SpecName, 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
  67. 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
  68. def store(implicit arguments: Arguments): (ExecutingSpecification) ⇒ ExecutingSpecification

    returns

    a function storing ExecutedFragments

    Definition Classes
    DefaultReporterDefaultStoringStoring
  69. def storeResults: ((SpecName, Seq[(SpecName, ExecutedResult)])) ⇒ repository.type

    store the results by spec name

    store the results by spec name

    Attributes
    protected
    Definition Classes
    DefaultStoring
  70. 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
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  72. def textOutput: ResultOutput

    Definition Classes
    TextPrinter
  73. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AllExporting

Inherited from Exporters

Inherited from ConsoleReporter

Inherited from TextExporting

Inherited from TextPrinter

Inherited from DefaultReporter

Inherited from Executor

Inherited from DefaultStoring

Inherited from Statistics

Inherited from DefaultExecutionStrategy

Inherited from FragmentExecution

Inherited from DefaultSequence

Inherited from DefaultSelection

Inherited from ExamplesSelection

Inherited from StatusSelection

Inherited from WithDefaultStatisticsRepository

Inherited from WithStatisticsRepository

Inherited from TagSelection

Inherited from TagsAssociation

Inherited from ExamplesIsolation

Inherited from Reporter

Inherited from Exporting

Inherited from Storing

Inherited from ExecutionStrategy

Inherited from Sequence

Inherited from Selection

Inherited from AnyRef

Inherited from Any

Ungrouped