Trait/Object

org.specs2.reporter

JUnitDescriptions

Related Docs: object JUnitDescriptions | package reporter

Permalink

trait JUnitDescriptions extends ExecutionOrigin

Create Description objects from the specification fragments and arrange them as a tree

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JUnitDescriptions
  2. ExecutionOrigin
  3. Stacktraces
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createDescription(className: String, suiteName: String = "", testName: String = "", label: String = "", annotations: Array[Annotation] = Array()): Description

    Permalink
  7. def createDescription(treeLoc: TreeLoc[Description]): Description

    Permalink
  8. def createDescription(spec: SpecStructure): Description

    Permalink
  9. def createDescriptionTree(spec: SpecStructure): TreeLoc[(Fragment, Description)]

    Permalink
  10. def createTreeLoc(spec: SpecStructure): TreeLoc[Description]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fragmentDescriptions(spec: SpecStructure): Map[Fragment, Description]

    Permalink

    Map of each fragment to its description

  15. def fromSpecs2orScalaz: (String) ⇒ Boolean

    Permalink
    Definition Classes
    ExecutionOrigin
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def isExecutedFrom(name: String, st: Seq[StackTraceElement]): Boolean

    Permalink
    Definition Classes
    Stacktraces
  19. def isExecutedFrom(name: String): Boolean

    Permalink

    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 this current piece of code contains name in its stacktrace.

    Definition Classes
    Stacktraces
  20. lazy val isExecutedFromAnIDE: Boolean

    Permalink

    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
  21. lazy val isExecutedFromEclipse: Boolean

    Permalink

    return true if the current test is executed with eclipse

    return true if the current test is executed with eclipse

    Definition Classes
    ExecutionOrigin
  22. lazy val isExecutedFromGradle: Boolean

    Permalink

    return true if the current test is executed with Gradle

    return true if the current test is executed with Gradle

    Definition Classes
    ExecutionOrigin
  23. lazy val isExecutedFromIntellij: Boolean

    Permalink

    return true if the current test is executed with Intellij

    return true if the current test is executed with Intellij

    Definition Classes
    ExecutionOrigin
  24. lazy val isExecutedFromMaven: Boolean

    Permalink

    return true if the current test is executed with Maven

    return true if the current test is executed with Maven

    Definition Classes
    ExecutionOrigin
  25. lazy val isExecutedFromSBT: Boolean

    Permalink

    return true if the current test is executed with sbt

    return true if the current test is executed with sbt

    Definition Classes
    ExecutionOrigin
  26. def isFromClass(classNamePredicate: (String) ⇒ Boolean, st: Seq[StackTraceElement]): Boolean

    Permalink

    returns

    true if there is a stacktrace element satisfying the predicate

    Definition Classes
    Stacktraces
  27. def isFromClass(classNamePredicate: (String) ⇒ Boolean): Boolean

    Permalink

    returns

    true if there is a stacktrace element satisfying the predicate

    Definition Classes
    Stacktraces
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isSpecificationFromSpecs2orScalaz(st: Seq[StackTraceElement]): Boolean

    Permalink

    try to approximate if a specification is a specs2 one or scalaz one by passing name = org.specs2 or name = scalaz

    try to approximate if a specification is a specs2 one or scalaz one by passing name = org.specs2 or name = scalaz

    Definition Classes
    ExecutionOrigin
  30. def keep: specification.process.Levels.Mapper

    Permalink

    filter out the fragments which don't need to be represented in the JUnit descriptions

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def parentPath(parentNodes: Seq[Fragment]): Seq[String]

    Permalink

    returns

    a seq containing the path of an example without the root name

  35. def specDescription(spec: SpecStructure): Description

    Permalink

    description for the beginning of the specification

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

    Permalink
    Definition Classes
    AnyRef
  37. def testName(s: String, parentNodes: Seq[String] = Seq()): String

    Permalink

    returns

    a test name with no newlines

  38. def toString(): String

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

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

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

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

Inherited from ExecutionOrigin

Inherited from Stacktraces

Inherited from AnyRef

Inherited from Any

Ungrouped