org.specs2.specification.script

Members list

Type members

Classlikes

abstract class DelimitedStepParser[T](regex: Regex) extends StepParser[T]

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
trait StepParser[T]
class Object
trait Matchable
class Any
Known subtypes
class DelimitedStepParser1[T](f: String => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser10[T](f: (String, String, String, String, String, String, String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser2[T](f: (String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser3[T](f: (String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser4[T](f: (String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser5[T](f: (String, String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser6[T](f: (String, String, String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser7[T](f: (String, String, String, String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser8[T](f: (String, String, String, String, String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParser9[T](f: (String, String, String, String, String, String, String, String, String) => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
class DelimitedStepParserSeq[T](f: Seq[String] => T, regex: Regex) extends DelimitedStepParser[T]

Attributes

Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any
case class FragmentsSeq(fs: Vector[Fragment])

List of fragments with utility functions to manipulate it

List of fragments with utility functions to manipulate it

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Script

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 Object
trait Matchable
class Any
trait ScriptLines

set of lines returned by a ScriptTemplate

set of lines returned by a ScriptTemplate

Attributes

Supertypes
class Object
trait Matchable
class Any
trait ScriptTemplate[T <: Script, L <: ScriptLines]

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 Object
trait Matchable
class Any
trait Scripts

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 Object
trait Matchable
class Any
Known subtypes
trait SpecLike
class Spec
Show all
Self type
object Scripts

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Scripts.type
abstract class Spec extends SpecLike

Attributes

Supertypes
trait SpecLike
trait Scripts
class Spec
trait SpecLike
trait ExpectedResults
trait StandardResults
trait ArgumentsShortcuts
trait ArgumentsCreation
trait Expectations
trait ExpectationsDescription
trait MustMatchers
trait MustExpectations
trait TypedEqual
trait Matchers
trait FutureMatchers
trait EventuallyMatchers
trait EventuallyResults
trait TryMatchers
trait EitherMatchers
trait OptionMatchers
trait ValueChecks
trait ValueChecksBase
trait NumericMatchers
trait ExceptionMatchers
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait StringMatchers
trait MapMatchers
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait AnyMatchers
trait ActionDsl
trait TagDsl
class Object
trait Matchable
class Any
Show all
trait SpecLike extends Spec, Scripts

Attributes

Supertypes
trait Scripts
class Spec
trait SpecLike
trait ExpectedResults
trait StandardResults
trait ArgumentsShortcuts
trait ArgumentsCreation
trait Expectations
trait ExpectationsDescription
trait MustMatchers
trait MustExpectations
trait TypedEqual
trait Matchers
trait FutureMatchers
trait EventuallyMatchers
trait EventuallyResults
trait TryMatchers
trait EitherMatchers
trait OptionMatchers
trait ValueChecks
trait ValueChecksBase
trait NumericMatchers
trait ExceptionMatchers
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait StringMatchers
trait MapMatchers
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait AnyMatchers
trait ActionDsl
trait TagDsl
class Object
trait Matchable
class Any
Show all
Known subtypes
class Spec
abstract class Specification extends SpecificationLike

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 Scripts
trait ImplicitExecutionContexts
trait ImplicitExecutionContextFromExecutionEnv
trait Debug
trait ResultLogicalCombinators
trait Results
trait MatcherImplicits
trait ExpectedResults
trait StandardResults
trait Expectations
trait ExpectationsDescription
trait ShouldMatchers
trait ShouldExpectations
trait MustMatchers
trait MustExpectations
trait TypedEqual
trait Matchers
trait FutureMatchers
trait EventuallyMatchers
trait EventuallyResults
trait TryMatchers
trait EitherMatchers
trait OptionMatchers
trait ValueChecks
trait ValueChecksBase
trait NumericMatchers
trait ExceptionMatchers
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait StringMatchers
trait MapMatchers
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait AnyMatchers
trait ArgumentsShortcuts
trait ArgumentsArgs
trait ArgProperties
trait ArgumentsCreation
trait AutoExamples
trait ReferenceDsl
trait ExampleDsl
trait TitleDsl
trait FragmentsDsl
trait ActionDsl
trait TagDsl
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Scripts
trait ImplicitExecutionContexts
trait ImplicitExecutionContextFromExecutionEnv
trait Debug
trait ResultLogicalCombinators
trait Results
trait MatcherImplicits
trait ExpectedResults
trait StandardResults
trait Expectations
trait ExpectationsDescription
trait ShouldMatchers
trait ShouldExpectations
trait MustMatchers
trait MustExpectations
trait TypedEqual
trait Matchers
trait FutureMatchers
trait EventuallyMatchers
trait EventuallyResults
trait TryMatchers
trait EitherMatchers
trait OptionMatchers
trait ValueChecks
trait ValueChecksBase
trait NumericMatchers
trait ExceptionMatchers
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait StringMatchers
trait MapMatchers
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait AnyMatchers
trait ArgumentsShortcuts
trait ArgumentsArgs
trait ArgProperties
trait ArgumentsCreation
trait AutoExamples
trait ReferenceDsl
trait ExampleDsl
trait TitleDsl
trait FragmentsDsl
trait ActionDsl
trait TagDsl
class Object
trait Matchable
class Any
Show 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 Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
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 Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait StepParser[T]

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 Object
trait Matchable
class Any
Known subtypes
Self type
object StepParser extends StepParsers

Attributes

Companion
trait
Supertypes
trait StepParsers
class Object
trait Matchable
class Any
Self type
StepParser.type
trait StepParsers

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 Object
trait Matchable
class Any
Known subtypes
object StepParser.type
object StepParsers.type
object StepParsers extends StepParsers

Attributes

Companion
trait
Supertypes
trait StepParsers
class Object
trait Matchable
class Any
Self type