org.specs2.runner

JUnitRunner

Related Docs: object JUnitRunner | package runner

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: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. implicit lazy val args: Arguments

    arguments for this specification

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

    extract the root Description object and the examples to execute

  9. lazy val descriptions: JUnitDescriptionsFragments

    descriptions for this specification

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

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

    Definition Classes
    AnyRef → Any
  12. 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

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

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

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

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

    Definition Classes
    TagSelection
  17. def finalize(): Unit

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

    extract the root Description object and the examples to execute

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

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

    returns

    a Description for the TestSuite

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  28. lazy val properties: SystemProperties

    system properties

  29. lazy val propertiesArgs: Arguments

    command line arguments, extracted from the system properties

  30. lazy val repository: StatisticsRepository

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

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

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

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

    selected fragments to execute

  35. lazy val specification: SpecificationStructure

    specification to execute

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

    Definition Classes
    AnyRef
  37. def testCount(): Int

    Definition Classes
    Runner
  38. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. 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