org.specs2.runner

JUnitRunner

class JUnitRunner extends Runner with Filterable with DefaultSelection

The JUnitRunner class is a JUnit Runner class meant to be used with the RunWith annotation to execute a specification as a JUnit suite.

The implementation is using a description Fold to fold the fragments into a tree of Description objects and a Map relating each Description to a Fragment to execute.

Self Type
JUnitRunner
Linear Supertypes
DefaultSelection, Selection, ExamplesSelection, StatusSelection, WithDefaultStatisticsRepository, WithStatisticsRepository, TagSelection, TagsAssociation, ExamplesIsolation, Filterable, Runner, Describable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JUnitRunner
  2. DefaultSelection
  3. Selection
  4. ExamplesSelection
  5. StatusSelection
  6. WithDefaultStatisticsRepository
  7. WithStatisticsRepository
  8. TagSelection
  9. TagsAssociation
  10. ExamplesIsolation
  11. Filterable
  12. Runner
  13. Describable
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JUnitRunner(klass: Class[_])

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. implicit lazy val args: Arguments

    arguments for this specification

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Attributes
    protected
    Definition Classes
    ExamplesIsolation
  10. lazy val desc: Description

    extract the root Description object and the examples to execute

  11. lazy val descriptions: JUnitDescriptionsFragments

    descriptions for this specification

  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def filter(filter: Filter): Unit

    Remove tests that don't pass the parameter filter.

    Remove tests that don't pass the parameter filter.

    filter

    the { @link Filter} to apply

    Definition Classes
    JUnitRunner → Filterable
    Exceptions thrown
    NoTestsRemainException

    if all tests are filtered out

  15. def filter(implicit commandLineArgs: Arguments): (Seq[(Fragment, Arguments, SpecName)]) ⇒ Seq[Fragment]

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

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

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

    Definition Classes
    TagSelection
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. lazy val fragmentsDescriptions: Map[Fragment, Description]

    extract the root Description object and the examples to execute

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getDescription(): Description

    returns

    a Description for the TestSuite

    Definition Classes
    JUnitRunner → Runner → Describable
  23. def hashCode(): Int

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

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

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

    Attributes
    protected
    Definition Classes
    ExamplesIsolation
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. lazy val properties: SystemProperties

    system properties

  31. lazy val propertiesArgs: Arguments

    command line arguments, extracted from the system properties

  32. lazy val repository: StatisticsRepository

    Attributes
    protected
    Definition Classes
    WithDefaultStatisticsRepository → WithStatisticsRepository
  33. def run(n: RunNotifier): Unit

    Definition Classes
    JUnitRunner → Runner
  34. def select(fragments: Seq[Fragment])(implicit arguments: Arguments): Seq[Fragment]

    Definition Classes
    DefaultSelection
  35. def select(implicit arguments: Arguments): (SpecificationStructure) ⇒ SpecificationStructure

    Definition Classes
    DefaultSelection → Selection
  36. lazy val selected: SpecificationStructure

    selected fragments to execute

  37. lazy val specification: SpecificationStructure

    specification to execute

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def testCount(): Int

    Definition Classes
    Runner
  40. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DefaultSelection

Inherited from Selection

Inherited from ExamplesSelection

Inherited from StatusSelection

Inherited from WithDefaultStatisticsRepository

Inherited from WithStatisticsRepository

Inherited from TagSelection

Inherited from TagsAssociation

Inherited from ExamplesIsolation

Inherited from Filterable

Inherited from Runner

Inherited from Describable

Inherited from AnyRef

Inherited from Any

Ungrouped