SpecStructure

org.specs2.specification.core.SpecStructure
See theSpecStructure companion object
case class SpecStructure(header: SpecHeader, arguments: Arguments, lazyFragments: () => Fragments)

Structure of a Specification:

  • a header
  • some arguments
  • specification fragments

Note that the fragments have to be lazy in order to avoid cycles when 2 specifications are referencing each other with links

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def contents: AsyncStream[Fragment]
def dependsOn(spec2: SpecStructure)(ee: ExecutionEnv): Boolean
def examples: Action[List[Fragment]]
def flatMap(f: Fragment => AsyncStream[Fragment]): SpecStructure
def fragmentsList(ee: ExecutionEnv): List[Fragment]
def linkReferences: Action[List[SpecificationRef]]
def name: String
def references: Action[List[Fragment]]
def seeReferences: Action[List[SpecificationRef]]
def setArguments(args: Arguments): SpecStructure
def specClassName: String
def specificationRefs: Action[List[SpecificationRef]]
def tags: Action[List[NamedTag]]
def texts: Action[List[Fragment]]
def wordsTitle: String

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val fragments: Fragments