org.specs2.runner

FinalResultsReporter

case class FinalResultsReporter(handler: EventHandler, loggers: Array[Logger]) extends TestInterfaceReporter with Product with Serializable

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

Linear Supertypes
Serializable, Serializable, Product, Equals, TestInterfaceReporter, HandlerEvents, ConsoleReporter, TextExporting, TextPrinter, DefaultReporter, DefaultStoring, Statistics, DefaultExecutionStrategy, FragmentExecution, DefaultSequence, DefaultSelection, ExamplesSelection, StatusSelection, WithDefaultStatisticsRepository, WithStatisticsRepository, TagSelection, ExamplesIsolation, Reporter, Exporting, Storing, ExecutionStrategy, Sequence, Selection, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FinalResultsReporter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TestInterfaceReporter
  7. HandlerEvents
  8. ConsoleReporter
  9. TextExporting
  10. TextPrinter
  11. DefaultReporter
  12. DefaultStoring
  13. Statistics
  14. DefaultExecutionStrategy
  15. FragmentExecution
  16. DefaultSequence
  17. DefaultSelection
  18. ExamplesSelection
  19. StatusSelection
  20. WithDefaultStatisticsRepository
  21. WithStatisticsRepository
  22. TagSelection
  23. ExamplesIsolation
  24. Reporter
  25. Exporting
  26. Storing
  27. ExecutionStrategy
  28. Sequence
  29. Selection
  30. AnyRef
  31. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. class NamedEvent extends Event

  2. sealed trait Print extends AnyRef

  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 PrintOther(fragment: ExecutedFragment) extends Print with Product with Serializable

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

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

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

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

  10. type ToPrint = (((Seq[Print], SpecsStatistics), Levels[ExecutedFragment]), SpecsArguments[ExecutedFragment])

    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. def IOReducer(output: ResultOutput)(implicit args: Arguments): Reducer[(((Seq[Print], SpecsStatistics), Levels[ExecutedFragment]), SpecsArguments[ExecutedFragment]), (((Seq[Print], SpecsStatistics), Levels[ExecutedFragment]), SpecsArguments[ExecutedFragment])]

    Definition Classes
    TextPrinter
  7. implicit object PrintReducer extends Reducer[ExecutedFragment, Seq[Print]]

  8. implicit def SpecStatsMonoid: Monoid[SpecStats]

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

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

    Definition Classes
    Any
  11. def canEqual(arg0: Any): Boolean

    Definition Classes
    FinalResultsReporter → Equals
  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. 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
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    FinalResultsReporter → Equals → AnyRef → Any
  16. def error(name: String, e: Throwable): NamedEvent

    Definition Classes
    HandlerEvents
  17. 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
    DefaultExecutionStrategy → ExecutionStrategy
  18. 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
  19. 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
  20. def executeFragment(implicit arguments: Arguments): (Fragment) ⇒ ExecutedFragment

    execute a Fragment.

    execute a Fragment.

    Definition Classes
    FragmentExecution
  21. def export(implicit args: Arguments): (ExecutingSpecification) ⇒ ExecutedSpecification

    returns

    a function exporting an ExecutingSpecification

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

    Definition Classes
    HandlerEvents
  23. 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
  24. 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
  25. def filterPrevious(implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[(Fragment, Arguments, SpecName)]

    returns

    fragments according to their previous execution state

    Definition Classes
    StatusSelection
  26. 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
  27. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def foldAll(fs: Seq[ExecutedFragment]): SpecsStatistics

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

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

    Attributes
    protected
    Definition Classes
    TestInterfaceReporter
  31. val handler: EventHandler

  32. def hashCode(): Int

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

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

    Definition Classes
    Any
  35. 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
  36. def isolateSteps(fragments: Seq[Fragment])(implicit arguments: Arguments): Seq[FragmentSeq]

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

  38. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  39. final def notify(): Unit

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

    Definition Classes
    AnyRef
  41. def print(name: SpecName, fs: Seq[ExecutedFragment])(implicit commandLineArgs: Arguments): (((Seq[Print], SpecsStatistics), Levels[ExecutedFragment]), SpecsArguments[ExecutedFragment])

    Definition Classes
    TextPrinter
  42. def productArity: Int

    Definition Classes
    FinalResultsReporter → Product
  43. def productElement(arg0: Int): Any

    Definition Classes
    FinalResultsReporter → Product
  44. def productIterator: Iterator[Any]

    Definition Classes
    Product
  45. def productPrefix: String

    Definition Classes
    FinalResultsReporter → Product
  46. 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
    ConsoleReporterReporter
  47. lazy val repository: StatisticsRepository

    Attributes
    protected
    Definition Classes
    WithDefaultStatisticsRepository → WithStatisticsRepository
  48. def result(r: Result): NamedEvent

    Definition Classes
    HandlerEvents
  49. 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
  50. 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
    DefaultSelectionSelection
  51. 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
  52. 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
    DefaultSequence
  53. 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
  54. def skipped(name: String): NamedEvent { def error(): Null }

    Definition Classes
    HandlerEvents
  55. def store(implicit args: Arguments): (ExecutingSpecification) ⇒ ExecutingSpecification

    returns

    a function storing ExecutedFragments

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

    store the results by spec name

    store the results by spec name

    Attributes
    protected
    Definition Classes
    DefaultStoring
  57. 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
  58. def succeeded(name: String): NamedEvent

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

    Definition Classes
    AnyRef
  60. 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
    TagSelection
  61. def textOutput: TestInterfaceResultOutput

    Definition Classes
    TestInterfaceReporterTextPrinter
  62. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TestInterfaceReporter

Inherited from HandlerEvents

Inherited from ConsoleReporter

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 ExamplesSelection

Inherited from StatusSelection

Inherited from WithDefaultStatisticsRepository

Inherited from WithStatisticsRepository

Inherited from TagSelection

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