org.specs2.runner

JUnitRunner

class JUnitRunner extends Runner with ExecutionOrigin

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.

Linear Supertypes
ExecutionOrigin, Stacktraces, Runner, Describable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. JUnitRunner
  2. ExecutionOrigin
  3. Stacktraces
  4. Runner
  5. Describable
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. implicit lazy val args : Arguments

    arguments for the specification

    arguments for the specification

    Attributes
    implicit
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. lazy val consoleExporter : TextExporting

    the console exporter can be used to display results in the console

    the console exporter can be used to display results in the console

    Attributes
    protected
  10. lazy val content : Fragments

    Attributes
    protected
  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  15. def getDescription (): Description

    returns

    a Description for the TestSuite

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

    Definition Classes
    AnyRef → Any
  17. lazy val htmlExporter : HtmlExporting

    the html exporter can be used to output html files

    the html exporter can be used to output html files

    Attributes
    protected
  18. def isExecutedFrom (name: String): Boolean

    This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse.

    This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse. In the first the test case names don't need to have the hashcode example.

    returns

    true if the this current piece of code contains name in its stacktrace.

    Definition Classes
    Stacktraces
  19. lazy val isExecutedFromAnIDE : Boolean

    return true if the current test is executed from an IDE

    return true if the current test is executed from an IDE

    Definition Classes
    ExecutionOrigin
  20. lazy val isExecutedFromEclipse : Boolean

    return true if the current test is executed with eclipse

    return true if the current test is executed with eclipse

    Definition Classes
    ExecutionOrigin
  21. lazy val isExecutedFromGradle : Boolean

    return true if the current test is executed with Gradle

    return true if the current test is executed with Gradle

    Definition Classes
    ExecutionOrigin
  22. lazy val isExecutedFromIntellij : Boolean

    return true if the current test is executed with Intellij

    return true if the current test is executed with Intellij

    Definition Classes
    ExecutionOrigin
  23. lazy val isExecutedFromMaven : Boolean

    return true if the current test is executed with Maven

    return true if the current test is executed with Maven

    Definition Classes
    ExecutionOrigin
  24. lazy val isExecutedFromSBT : Boolean

    return true if the current test is executed with sbt

    return true if the current test is executed with sbt

    Definition Classes
    ExecutionOrigin
  25. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  26. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  29. lazy val properties : SystemProperties

    system properties

    system properties

    Attributes
    protected
  30. def run (notifier: RunNotifier): Unit

    run the suite by executing each fragment related to a description: - execute all fragments (including Steps which are reported as steps) - for each result, report the failure/error/skipped or pending message as a junit failure or ignored event on the RunNotifier

    run the suite by executing each fragment related to a description: - execute all fragments (including Steps which are reported as steps) - for each result, report the failure/error/skipped or pending message as a junit failure or ignored event on the RunNotifier

    Definition Classes
    JUnitRunner → Runner
  31. lazy val specification : SpecificationStructure

    specification to execute

    specification to execute

    Attributes
    protected
  32. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  33. def testCount (): Int

    Definition Classes
    Runner
  34. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ExecutionOrigin

Inherited from Stacktraces

Inherited from Runner

Inherited from Describable

Inherited from AnyRef

Inherited from Any