Class

org.specs2.reporter

TestInterfaceReporter

Related Doc: package reporter

Permalink

class TestInterfaceReporter extends ConsoleReporter with HandlerEvents

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
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestInterfaceReporter
  2. HandlerEvents
  3. ConsoleReporter
  4. TextExporting
  5. TextPrinter
  6. DefaultReporter
  7. Executor
  8. DefaultStoring
  9. Statistics
  10. DefaultExecutionStrategy
  11. FragmentExecution
  12. DefaultSequence
  13. DefaultSelection
  14. ExamplesSelection
  15. StatusSelection
  16. WithDefaultStatisticsRepository
  17. WithStatisticsRepository
  18. TagSelection
  19. TagsAssociation
  20. ExamplesIsolation
  21. Reporter
  22. Exporting
  23. Storing
  24. ExecutionStrategy
  25. Sequence
  26. Selection
  27. AnyRef
  28. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestInterfaceReporter(handler: EventHandler, loggers: Array[Logger])

    Permalink

Type Members

  1. class NamedEvent extends Event

    Permalink
    Definition Classes
    HandlerEvents
  2. sealed trait Print extends AnyRef

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

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

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

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

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

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

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

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

    Permalink

    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

    Permalink

    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], Stats), Level[Fragment]), Arguments)

    Permalink
    Definition Classes
    TextPrinter

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ExecutedStatisticsReducer: Reducer[ExecutedFragment, SpecsStatistics]

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

    Permalink
    Definition Classes
    TextPrinter
  6. implicit def SpecStatsMonoid: Monoid[SpecStats] { val zero: TestInterfaceReporter.this.SpecStats }

    Permalink
    Definition Classes
    Statistics
  7. object SpecsStatistics extends Product with Serializable

    Permalink
    Definition Classes
    Statistics
  8. implicit def SpecsStatisticsMonoid: Monoid[SpecsStatistics] { val zero: TestInterfaceReporter.this.SpecsStatistics }

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

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

    Permalink
    Definition Classes
    Statistics
  11. val StatsReducer2: Reducer[ExecutingFragment, Stats]

    Permalink
    Definition Classes
    Statistics
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def clone(): AnyRef

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

    Permalink

    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
  15. def delegate(arguments: Arguments): Option[Executor]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def error(name: String, e: Throwable): NamedEvent

    Permalink
    Definition Classes
    HandlerEvents
  19. def execute(implicit arguments: Arguments): (ExecutableSpecification) ⇒ ExecutingSpecification

    Permalink

    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
  20. def execute(f: Fragment)(implicit arguments: Arguments = Arguments()): Product with Serializable with ExecutedFragment

    Permalink

    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
  21. def executeAsap(executing: ExecutingFragment): FinishedExecutingFragment

    Permalink
    Definition Classes
    DefaultExecutionStrategy
  22. def executeBody(body: ⇒ Result)(implicit arguments: Arguments): Result

    Permalink

    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 }]

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

    Permalink

    execute a Fragment.

    execute a Fragment.

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

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

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

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

    Permalink

    returns

    a function exporting an ExecutingSpecification

    Definition Classes
    TestInterfaceReporterTextExporting → Exporting
  29. def failure(name: String, e: Throwable): NamedEvent

    Permalink
    Definition Classes
    HandlerEvents
  30. def filter(implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[Fragment]

    Permalink

    returns

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

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

    Permalink

    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
  32. def filterPrevious(implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[(Fragment, Arguments, SpecName)]

    Permalink

    returns

    fragments according to their previous execution state

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

    Permalink

    returns

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

    Definition Classes
    TagSelection
  34. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  37. def handleFragment(implicit args: Arguments): (ExecutedFragment) ⇒ ExecutedFragment

    Permalink
    Attributes
    protected
  38. val handler: EventHandler

    Permalink
  39. def hashCode(): Int

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

    Permalink
    Attributes
    protected
    Definition Classes
    StatusSelection
  41. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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
  43. def isolateSteps(fragments: Seq[Fragment])(implicit arguments: Arguments): Seq[FragmentSeq]

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultSequence
  44. val loggers: Array[Logger]

    Permalink
  45. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. def print(name: SpecName, fs: Seq[ExecutingFragment])(implicit commandLineArgs: Arguments): (((Stream[Print], Stats), Level[Fragment]), Arguments)

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

    Permalink

    print a line to the output

    print a line to the output

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

    Permalink

    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
    ConsoleReporterReporter
  51. lazy val repository: StatisticsRepository

    Permalink
    Attributes
    protected
    Definition Classes
    WithDefaultStatisticsRepository → WithStatisticsRepository
  52. def result(name: String)(r: Result): NamedEvent

    Permalink
    Definition Classes
    HandlerEvents
  53. def select(implicit arguments: Arguments): (SpecificationStructure) ⇒ SpecificationStructure

    Permalink

    select function returning a filtered seq of Fragments

    select function returning a filtered seq of Fragments

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

    Permalink

    select function returning a filtered seq of Fragments

    select function returning a filtered seq of Fragments

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

    Permalink

    sequence function returning an ordered seq of seq of Fragments

    sequence function returning an ordered seq of seq of Fragments

    Definition Classes
    DefaultReporterDefaultSequenceSequence
  56. def sequence(specName: SpecName, fragments: Seq[Fragment])(implicit arguments: Arguments = Arguments()): Seq[FragmentSeq]

    Permalink

    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
  57. def setStatsOnSpecEndFragments(implicit args: Arguments): ((ExecutedFragment, Stats)) ⇒ ExecutedFragment

    Permalink

    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
  58. def skipped(name: String, description: String = ""): NamedEvent { def error(): Null }

    Permalink
    Definition Classes
    HandlerEvents
  59. def store(implicit arguments: Arguments): (ExecutingSpecification) ⇒ ExecutingSpecification

    Permalink

    returns

    a function storing ExecutedFragments

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

    Permalink

    store the results by spec name

    store the results by spec name

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

    Permalink

    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
  62. def succeeded(name: String): NamedEvent

    Permalink
    Definition Classes
    HandlerEvents
  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  64. def textOutput: TestInterfaceResultOutput

    Permalink
    Definition Classes
    TestInterfaceReporterTextPrinter
  65. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HandlerEvents

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