Script

org.specs2.specification.script.Script
trait Script

A Script is responsible for analysing a piece of text an creating a sequence of fragments.

It usually uses a ScriptTemplate specifying how to parse the text into block of lines that the Script knows how to transform to fragments.

For example a GWT script (a Scenario) stores functions to create Given/When/Then steps and examples and the LastLinesScriptTemplate extract the last lines of a piece of text and divides them into blocks of Given/When/Then lines based on the number of steps in the Scenario.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class GroupsScript

Members list

Value members

Abstract methods

def fragments(text: String): FragmentsSeq

create fragments corresponding on this sequence based on a piece of text

create fragments corresponding on this sequence based on a piece of text

Attributes

def isStart: Boolean

Attributes

Returns

true if this object marks the beginning of the script

def title: String

Attributes

Returns

the title of the script