The bullet template associates lines starting with *
and a keyword given
/ when
ou then
to given / when / then steps
Analyse a piece of text and group Fragments belonging to the same group
A Delimited step parser uses a delimiter ({}
by default) to know which string to extract from the text
Block of fragments
The GWT trait can be used to associate a piece of text to Given/When/Then steps according to the [BDD](http://en.
Set of extracted lines from some text which are either: simple text, given text, when text or then text
This script associates lines extracted by a template to example bodies defined by a GroupsLike trait.
The LastLines template takes the number of given / when / then steps of the scenario and associate the last (non-empty) lines of the text with them
A sequence of GWT steps.
A Script is responsible for analysing a piece of text an creating a sequence of fragments.
set of lines returned by a ScriptTemplate
A ScriptTemplate parses some text to create ScriptLines that the associated script knows how to translate to Fragments.
The Scripts trait builds fragments based on Script objects.
Trait for the script.
This Specification trait is using a Script (GroupScript
) and a default template BulletedExamplesTemplate
to associate extracted examples text (where there are +
signs) to example bodies coming from a Group
.
Trait for the script.
a few delimited parsers (with {}
) to extract ints, doubles and strings
a few regular expression parsers to extract ints, doubles and strings (strings are delimited with "
)
A StepParser is a function to extract a value of type T
from a piece of text
It can also strip the text from delimiters if any
StepParsers are using delimiters or regular expressions with groups to extract values from a piece of text and possibly strip it from delimiters if necessary