transient class to hold an example description before creating a full Example
This class creates Given or Then extractors from a regular expression and a function
declaration of Fragments from the user
declaration of Fragments from the user
at any point in time a regex sequence can be transformed as a sequence of Fragments
at any point in time a regex sequence can be transformed as a sequence of Fragments
Arguments creation
Arguments creation
a Fragments object which can be chained with other fragments
implicit conversion to transform a Given[Y] to Given[X] when Y <: X
implicit conversion to transform a Given[Y] to Given[X] when Y <: X
Example creation
Example creation
an Example description from a string, to create a full Example once the body is defined
a Fragments object from a single Fragment
reverse conversion from a Fragment containing a Fragments object to the Fragments object
reverse conversion from a Fragment containing a Fragments object to the Fragments object
factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract
factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract
specName provides useful information identifying the specification: title, className, url.
specName provides useful information identifying the specification: title, className, url...
automatically convert a specification to its identification
automatically convert a specification to its identification
transform a scope to a success to be able to create traits containing any variables and usable in any Examples
transform a scope to a success to be able to create traits containing any variables and usable in any Examples
add the fragments of another specification without start and end
add the fragments of another specification without start and end
create a link directly on a specification, with a given link
create a link directly on a specification, with a given link
create a link directly on a specification
create a link directly on a specification
this method can be overriden to map additional behavior in the user-defined fragments
this method can be overriden to map additional behavior in the user-defined fragments
factory method to create a Given or a Then element from a regex
factory method to create a Given or a Then element from a regex
typeclass to transform a Scope to a Result
typeclass to transform a Scope to a Result
create a see-only link directly on a specification, with a given link
create a see-only link directly on a specification, with a given link
create a html link without including the other specification fragments
create a html link without including the other specification fragments
create markdown links from string + spec identification
create markdown links from string + spec identification
this implicit allows to call some functions directly on a specification, like 'hide'
this implicit allows to call some functions directly on a specification, like 'hide'
Links to other specifications creation
Links to other specifications creation
org.specs2.UserGuide
create a Text Fragment from a string and allow it to be chained to other fragments
a Fragments object from a string
This method allows to add a title to the Specification.
This method allows to add a title to the Specification. It can be used as an operation on a String:
"spec title".title
a Fragments object from a string, with the given title
implicit conversion to transform a Then[Y] to Then[X] when Y <: X
implicit conversion to transform a Then[Y] to Then[X] when Y <: X
implicit conversion to transform a When[P, Q] to When[R, S] when R <: P and S >: Q
implicit conversion to transform a When[P, Q] to When[R, S] when R <: P and S >: Q
A Base specification contains the minimum elements for a Specification
- a Seq of Fragments, available through the SpecificationStructure trait - methods for creating Fragments from the FragmentsBuilder trait - methods to include other specifications