org.specs2.specification.script
Members list
Type members
Classlikes
A Delimited step parser uses a delimiter ({}
by default) to know which string to extract from the text
A Delimited step parser uses a delimiter ({}
by default) to know which string to extract from the text
Attributes
- Supertypes
- Known subtypes
-
class DelimitedStepParser1[T]class DelimitedStepParser10[T]class DelimitedStepParser2[T]class DelimitedStepParser3[T]class DelimitedStepParser4[T]class DelimitedStepParser5[T]class DelimitedStepParser6[T]class DelimitedStepParser7[T]class DelimitedStepParser8[T]class DelimitedStepParser9[T]class DelimitedStepParserSeq[T]Show all
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
List of fragments with utility functions to manipulate it
List of fragments with utility functions to manipulate it
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FragmentsSeq.type
A Script is an object responsible for analysing a piece of text and creating a sequence of fragments.
A Script is an object responsible for analysing a piece of text and creating a sequence of fragments.
It is first created with a list of fragments executions (some code) and when the fragments
method is called it can associate each execution to some portion of text according to a template.
For example a GWT script (a Scenario
) stores functions to create Given/When/Then steps and examples and the LastLinesScriptTemplate
extracts the last lines of a piece of text, divides them into blocks of Given/When/Then lines based on the number of steps in the Scenario.
See the GWTSpec in the examples module
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
set of lines returned by a ScriptTemplate
set of lines returned by a ScriptTemplate
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A ScriptTemplate parses some text to create ScriptLines that the associated script knows how to translate to Fragments.
A ScriptTemplate parses some text to create ScriptLines that the associated script knows how to translate to Fragments.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The Scripts trait builds fragments based on Script objects.
The Scripts trait builds fragments based on Script objects.
When the script starts, a section tag is inserted and when it ends another one as well. Also when the scripts ends, it is passed the previous text for analysis to extract new fragments
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait SpecLikeclass Spectrait SpecificationLiketrait SpecificationLikeclass Specificationclass SpecificationShow all
- Self type
Attributes
- Supertypes
-
trait SpecLiketrait Scriptsclass Spectrait SpecLiketrait ExpectedResultstrait StandardResultstrait FormattingFragmentstrait ArgumentsShortcutstrait ArgumentsCreationtrait Expectationstrait ExpectationsDescriptiontrait MustMatcherstrait MustExpectationstrait TypedEqualtrait Matcherstrait FutureMatcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatcherstrait ActionDsltrait TagDsltrait ReferenceCreationtrait SpecStructureDsltrait S2StringContextCreationtrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Scriptsclass Spectrait SpecLiketrait ExpectedResultstrait StandardResultstrait FormattingFragmentstrait ArgumentsShortcutstrait ArgumentsCreationtrait Expectationstrait ExpectationsDescriptiontrait MustMatcherstrait MustExpectationstrait TypedEqualtrait Matcherstrait FutureMatcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatcherstrait ActionDsltrait TagDsltrait ReferenceCreationtrait SpecStructureDsltrait S2StringContextCreationtrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Spec
These classes and traits enrich regular specifications with the possibility to include "scripts" in their definition. (see Scripts.scala)
These classes and traits enrich regular specifications with the possibility to include "scripts" in their definition. (see Scripts.scala)
Attributes
- Supertypes
-
trait SpecificationLiketrait Scriptstrait SpecificationLiketrait SpecificationFeaturestrait ImplicitExecutionContextstrait ImplicitExecutionContextFromExecutionEnvtrait Debugtrait PendingUntilFixedtrait ResultLogicalCombinatorstrait Resultstrait MatcherImplicitstrait ExpectedResultstrait StandardResultstrait Expectationstrait ExpectationsDescriptiontrait ShouldMatcherstrait ShouldExpectationstrait MustMatcherstrait MustExpectationstrait TypedEqualtrait Matcherstrait FutureMatcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatcherstrait SpecificationCreationtrait FormattingFragmentstrait S2StringContexttrait S2StringContextCreationtrait ArgumentsShortcutstrait ArgumentsArgstrait ArgPropertiestrait ArgumentsCreationtrait AutoExamplestrait AcceptanceDsltrait ReferenceDsltrait ExampleDsltrait TitleDsltrait FragmentsDsltrait ActionDsltrait TagDsltrait ReferenceCreationtrait SpecStructureDsltrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Scriptstrait SpecificationLiketrait SpecificationFeaturestrait ImplicitExecutionContextstrait ImplicitExecutionContextFromExecutionEnvtrait Debugtrait PendingUntilFixedtrait ResultLogicalCombinatorstrait Resultstrait MatcherImplicitstrait ExpectedResultstrait StandardResultstrait Expectationstrait ExpectationsDescriptiontrait ShouldMatcherstrait ShouldExpectationstrait MustMatcherstrait MustExpectationstrait TypedEqualtrait Matcherstrait FutureMatcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatcherstrait SpecificationCreationtrait FormattingFragmentstrait S2StringContexttrait S2StringContextCreationtrait ArgumentsShortcutstrait ArgumentsArgstrait ArgPropertiestrait ArgumentsCreationtrait AutoExamplestrait AcceptanceDsltrait ReferenceDsltrait ExampleDsltrait TitleDsltrait FragmentsDsltrait ActionDsltrait TagDsltrait ReferenceCreationtrait SpecStructureDsltrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
- Known subtypes
a few delimited parsers (with {}
) to extract ints, doubles and strings
a few delimited parsers (with {}
) to extract ints, doubles and strings
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object StandardDelimitedStepParsers
Attributes
- Companion
- trait
- Supertypes
- Self type
a few regular expression parsers to extract ints, doubles and strings (strings are delimited with "
)
a few regular expression parsers to extract ints, doubles and strings (strings are delimited with "
)
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object StandardRegexStepParsers
Attributes
- Companion
- trait
- Supertypes
- Self type
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
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
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DelimitedStepParser[T]class DelimitedStepParser1[T]class DelimitedStepParser10[T]class DelimitedStepParser2[T]class DelimitedStepParser3[T]class DelimitedStepParser4[T]class DelimitedStepParser5[T]class DelimitedStepParser6[T]class DelimitedStepParser7[T]class DelimitedStepParser8[T]class DelimitedStepParser9[T]class DelimitedStepParserSeq[T]trait ReadAsParser[T]Show all
- Self type
-
StepParser[T]
Attributes
- Companion
- trait
- Supertypes
- Self type
-
StepParser.type
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
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
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object StepParserobject StepParsers
Attributes
- Companion
- trait
- Supertypes
- Self type
-
StepParsers.type