org.specs2

specification

package specification

Visibility
  1. Public
  2. All

Type Members

  1. case class AcceptanceCreationPath(path: Seq[Int]) extends CreationPath with Product with Serializable

  2. case class Action(action: LazyParameter[Result] = lazyParameter(Success()), location: Location = new Location, isolable: Boolean = true, creationPath: Option[CreationPath] = None) extends Fragment with Executable with Isolable with Product with Serializable

    An Action is similar to a Step but can be executed concurrently with other examples.

    An Action is similar to a Step but can be executed concurrently with other examples.

    It is only reported in case of a failure

  3. trait After extends Context

    The After trait can be inherited by classes representing a context where an action must be executing after the main executable action

    The After trait can be inherited by classes representing a context where an action must be executing after the main executable action

    See also

    Example to understand why the type T must : AsResult

  4. trait AfterContextExample[C <: After] extends ExamplesFactory

    For each created example use a given After context

  5. trait AfterEach extends After with Apply

    apply an After context to each Example

  6. trait AfterExample extends AfterContextExample[After]

    For each created example use a given after method

  7. trait AllExpectations extends StoredExpectations with ExamplesFactory with SpecificationStructure with ArgumentsArgs

    This trait can be mixed-in a specification to allow examples to have all of their expectations being evaluated (unless the example body throws an exception of course).

    This trait can be mixed-in a specification to allow examples to have all of their expectations being evaluated (unless the example body throws an exception of course).

    All the results are collected into a list, provided by the StoredExpectations trait. These results form then the body of the each example (decorated by a special ExampleFactory) so that each example returns a Result which is the summary of all the individual issues.

    It must be noted that this trait relies on a mutable list to collect the results as they are created in the example body. Because of this restriction, a Specification using that trait can either run sequentially or isolated.

    If the specification is neither sequential or isolated, we force it to be isolated by default.

  8. trait Analysis extends DependencyMatchers

    This trait provides integrated analysis method for a scala project

  9. trait Apply extends Context

    Apply a Context to a sequence of fragments containing examples.

    Apply a Context to a sequence of fragments containing examples.

    The context is then applied to each example

  10. trait Around extends Context

    The Around trait can be inherited by classes which will execute some code inside the around method provided by the context.

    The Around trait can be inherited by classes which will execute some code inside the around method provided by the context.

    This can be used for example to execute some code inside a webapp session

    See also

    Example to understand why the type T must : AsResult

  11. trait AroundContextExample[C <: Around] extends ExamplesFactory

    For each created example use a given Around context

  12. trait AroundEach extends Around with Apply

    apply an Around context to each Example

  13. trait AroundExample extends AroundContextExample[Around]

    For each created example use a given around method

  14. trait AroundOutside[+T] extends Around with Outside[T]

    The AroundOutside trait can be inherited by classes which will execute some code inside a given context, with a function using that context and actions before and after if necessary.

    The AroundOutside trait can be inherited by classes which will execute some code inside a given context, with a function using that context and actions before and after if necessary.

    See also

    Example to understand why the type T must : AsResult

  15. trait BaseSpecification extends SpecificationStructure with FragmentsBuilder with SpecificationInclusion

    A Base specification contains the minimum elements for a Specification

    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

  16. trait Before extends Context

    The Before trait can be inherited by classes representing a context where an action must be executing before the main executable action

    The Before trait can be inherited by classes representing a context where an action must be executing before the main executable action

    See also

    Example to understand why the type T must : AsResult

  17. trait BeforeAfter extends Before with After

    The BeforeAfter trait allows to declare before and after actions to execute before and after an Example

    The BeforeAfter trait allows to declare before and after actions to execute before and after an Example

    See also

    After

    Before

  18. trait BeforeAfterAround extends Before with After with Around

    The BeforeAfterAround trait allows to declare before, around and after actions

    The BeforeAfterAround trait allows to declare before, around and after actions

    See also

    Around

    After

    Before

  19. trait BeforeAfterAroundContextExample[C <: BeforeAfterAround] extends ExamplesFactory

    For each created example use a given BeforeAfterAround context

  20. trait BeforeAfterAroundEach extends BeforeAfterAround with Apply

    apply a BeforeAfterAround context to each Example

  21. trait BeforeAfterAroundExample extends BeforeAfterAroundContextExample[BeforeAfterAround]

    For each created example use a given before/after method

  22. trait BeforeAfterContextExample[C <: BeforeAfter] extends ExamplesFactory

    For each created example use a given BeforeAfter context

  23. trait BeforeAfterEach extends BeforeAfter with Apply

    apply a BeforeAfter context to each Example

  24. trait BeforeAfterExample extends BeforeAfterContextExample[BeforeAfter]

    For each created example use a given before/after method

  25. trait BeforeContextExample[C <: Before] extends ExamplesFactory

    For each created example use a given Before context

  26. trait BeforeEach extends Before with Apply

    apply a Before context to each Example

  27. trait BeforeExample extends BeforeContextExample[Before]

    For each created example use a given after method

  28. trait Context extends AnyRef

    generic trait for Before, After, Around

  29. trait Contexts extends AnyRef

    This trait is only used when we wish to write after actions in unit specifications like this

    This trait is only used when we wish to write after actions in unit specifications like this

    "an example" ! { 1 must_== 1 }.after(clean)

  30. trait ContextsInjection extends Contexts

  31. sealed trait CreationPath extends AnyRef

  32. class DecoratedExampleFactory extends ExampleFactory

    Decorated creation where the body of the example can be surrounded with a given context if necessary

    Decorated creation where the body of the example can be surrounded with a given context if necessary

    See also

    mutable.BeforeExample

  33. class DefaultExampleFactory extends ExampleFactory

    Default implementation for the example factory trait just creating an Example object

  34. trait DefaultFragmentsFormatting extends FragmentsFormatting with TagsAssociation

  35. case class Example extends Fragment with Executable with Isolable with Product with Serializable

    A Example is:

    A Example is:

    - a description: some text, with possibly some markdown annotations for rendering code fragments (used in AutoExamples) - a body: some executable code returning a Result

  36. trait ExampleFactory extends AnyRef

    This trait defines methods for creating Examples.

    This trait defines methods for creating Examples.

    You can subclass it and implement the newExample(e: Example) method to provide alternative behavior.

    The new factory can be passed to a Specification by overriding the ExamplesFactory.exampleFactory method

  37. trait ExamplesFactory extends AnyRef

  38. case class ExamplesGroup(name: String = "") extends Product with Serializable

  39. trait ExamplesTimeout extends AroundExample with CommandLineArguments

    This trait can be used to add a global time out to each example or for a specific one:

    This trait can be used to add a global time out to each example or for a specific one:

    • for each example mix-in the trait
    • for a single example import the object and use the upTo context: my example must terminate in a reasonable amount of time ${upTo(3.seconds)(e1)}
  40. case class ExecutedBacktab(n: Int = 1, location: Location = new Location) extends ExecutedStandardFragment with Product with Serializable

  41. case class ExecutedBr(location: Location = new Location) extends ExecutedStandardFragment with Product with Serializable

  42. case class ExecutedEnd(location: Location = new Location) extends ExecutedStandardFragment with Product with Serializable

  43. sealed trait ExecutedFragment extends AnyRef

    The Executed Fragments represent pieces of a Specification which have already been executed to provide a Result

  44. case class ExecutedNoText(original: Fragment, timer: SimpleTimer = new SimpleTimer, location: Location = new Location) extends ExecutedFragment with Product with Serializable

    This executed Fragment is used when no text must be displayed (for the successful execution of an Action for example)

  45. case class ExecutedResult(s: FormattedString, result: Result, timer: SimpleTimer, location: Location, statistics: Stats) extends ExecutedFragment with Product with Serializable

  46. case class ExecutedSpecEnd(end: SpecEnd, location: Location = new Location, stats: Stats = Stats()) extends ExecutedFragment with Product with Serializable

  47. case class ExecutedSpecStart(start: SpecStart, location: Location = new Location, stats: Stats = Stats().startTimer) extends ExecutedFragment with Product with Serializable

  48. case class ExecutedSpecification(name: SpecName, fs: Seq[ExecutedFragment]) extends Product with Serializable

    A specification with a name and all of its fragments already executed

  49. trait ExecutedStandardFragment extends ExecutedFragment

  50. case class ExecutedTab(n: Int = 1, location: Location = new Location) extends ExecutedStandardFragment with Product with Serializable

  51. case class ExecutedText(textFragment: Text, location: Location = new Location) extends ExecutedFragment with Product with Serializable

  52. sealed trait ExecutingFragment extends AnyRef

    The Executing Fragment trait represent a Fragment being executed.

    The Executing Fragment trait represent a Fragment being executed.

    Some fragments are executed right away, other ones on demand synchronously, and other ones concurrently

  53. case class ExecutingSpecification(name: SpecName, arguments: Arguments, fs: Seq[ExecutingFragment], executor: ExecutorService) extends Product with Serializable

    a specification with a name and a sequence of fragments being executed

  54. case class FinishedExecutingFragment(f: ExecutedFragment) extends ExecutingFragment with Product with Serializable

    embed an already executed Fragment

  55. trait Fixture[T] extends AnyRef

    A Fixture can be implicitly passed to a set of examples taking a function as an input.

    A Fixture can be implicitly passed to a set of examples taking a function as an input.

    It can effectively act as an Outside and an Around context

  56. trait FixtureExample[T] extends AnyRef

    For each created example use a given after method

  57. case class FormFormattedString(f: () ⇒ Form, formatting: Formatting = Formatting(), isEmpty: Boolean = false, display: (Form) ⇒ String = (ff: Form) => new FormCell(ff).text) extends FormattedString with Product with Serializable

    The FormFormattedString embeds the description of a form as text or as Xml

  58. trait FormFragmentExecution extends FragmentExecution

    This trait executes Form Fragments in addition to other fragments

  59. trait FormFragmentsBuilder extends FragmentsBuilder

  60. trait FormSpecificationStringContext extends SpecificationStringContext

    Allow to use forms inside interpolated strings starting with s2 in order to build the specification content

  61. trait FormattedString extends AnyRef

  62. case class Formatting(flow: Boolean = false, markdown: Boolean = true, verbatim: Boolean = true) extends Product with Serializable

    Formatting for Text fragments

  63. trait FormattingFragments extends AnyRef

    Set of fragments which can be used for formatting

  64. trait FormattingTags extends Tags

  65. trait Forms extends FormsBuilder with FormFragmentsBuilder with DecoratedProperties with FormFragmentExecution with FormSpecificationStringContext

    Allow a Form to be inserted among Fragments as a Text Fragment Allow a Form to be used as an example body and return a Result automatically

  66. sealed trait Fragment extends AnyRef

    A Fragment is a piece of a specification.

    A Fragment is a piece of a specification. It can be a piece of text, an action or an Example

  67. trait FragmentExecution extends AnyRef

    This trait executes Fragments

    This trait executes Fragments

    It provides a function which executes fragments and returns executed fragments

  68. case class Fragments(specTitle: Option[SpecName] = None, middle: Seq[Fragment] = Stream().toSeq, arguments: Arguments = Arguments(), linked: Linked = Linked()) extends Product with Serializable

    A Fragments object is a list of fragments with a SpecStart and a SpecEnd

  69. trait FragmentsBuilder extends ExamplesFactory with ImplicitParameters with FormattingTags

    This trait provides function to create specification Fragments:

    This trait provides function to create specification Fragments:

    • a SpecStart fragment with title
    • a Text fragment with text
    • an Example fragment with a body
    • a group of fragments (when including another specification for example)
  70. trait FragmentsFormatting extends AnyRef

    This trait post-process fragments.

    This trait post-process fragments.

    The default implementation looks for tags and sections to mark text and examples as "markdown"

  71. class FragmentsFragment extends AnyRef

    Fragments can be chained with the ^ method

  72. abstract class Given[T] extends RegexExtractor[Unit, T]

    This step can start a sequence of Given / When / Then.

    This step can start a sequence of Given / When / Then.

    It must define the extract function creating a value of type T from the extracted values

  73. abstract class GivenThen extends RegexExtractor[String, Result]

  74. class GivenThenFunction[R] extends GivenThen

  75. trait GivenWhenThen extends RegexStepsFactory with TuplesToSeq with FragmentsBuilder with SpecificationStringContext with ArgumentsArgs

    This trait provides building blocks to create steps and examples from regular expression.

    This trait provides building blocks to create steps and examples from regular expression.

    It is used to implement a Given-When-Then way of describing systems.

    Fragments are created by adding a Given step to a Text:

    "name: ${user}" ^ givenName

    This creates a PreStep object containing the current context (representing all the extracted values) and a list of Fragments containing:

    • the Text fragment: Text("name: ${user}")
    • a Step containing the extraction code to get the value delimited by ${}

    Then, this PreStep object can be followed by another piece of Text to create a PreStepText object. This object merely stores the additional Text fragment so that values can be extracted from it when a When step is added:

    // this creates a PreStepText object
    "name: ${user}" ^ givenName ^
    "age: ${38}"
    
    // this creates a PreStep object
    "name: ${user}" ^ givenName ^
    "age: ${38}"    ^ thenAge ^

    Eventually, when a Then step is added, a sequence of PostStep/PostStepText objects is created. Those objects use the current context and the results returned by the Then objects to create Examples.

    The last PostStep object contains the list of all fragments created by the Given/When/Then sequence:

    • Text fragments
    • Steps
    • Examples
  76. trait Grouped extends GroupsLike

    This trait can be used to standardize names for groups of examples in an acceptance specification.

    This trait can be used to standardize names for groups of examples in an acceptance specification.

    class MySpecification extends Specification with Examples { def is = s2""" first example in first group ${g1.e1} second example in first group ${g1.e2}

    first example in second group ${g2.e1} second example in second group ${g2.e2} """ }

    trait Examples extends Grouped with Matchers { "first group of examples" - new g1 { e1 := ok e2 := ok } "second group of examples" - new g2 { e1 := ok e2 := ok } }

    If you don't want to manage groups and examples numbers it is also possible to write the following (note the script.Specification):

    class MySpecification extends script.Specification with Examples { def is = s2""" first example in first group second example in first group

    first example in second group second example in second group """ }

    trait Examples extends Grouped with Matchers { "first group of examples" - new group { eg := ok eg := ok } "second group of examples" - new group { eg := ok eg := ok } }

  77. trait Groups extends GroupsLike

    This trait can be used to standardize names for groups of examples in an acceptance specification.

    This trait can be used to standardize names for groups of examples in an acceptance specification.

    class MySpecification extends Specification with Examples { def is = s2""" first example in first group ${g1().e1} second example in first group ${g1().e2}

    first example in second group ${g2().e1} second example in second group ${g2().e2} """ }

    trait Examples extends Groups with Matchers { "first group of examples" - new g1 { e1 := ok e2 ;= ok } "second group of examples" - new g2 { e1 := ok e2 := ok } }

    It is important to notice that the examples must be called with g1().e1 so as to create a new g1 trait instance with new local variables for the example e1. If this is not required, the Grouped trait can be used instead

    If you don't want to manage groups and examples numbers it is also possible to write the following (note the script.Specification):

    class MySpecification extends script.Specification with Examples { def is = s2""" first example in first group second example in first group

    first example in second group second example in second group """ }

    trait Examples extends Groups with Matchers { "first group of examples" - new group { eg := ok eg := ok } "second group of examples" - new group { eg := ok eg := ok } }

  78. trait GroupsLike extends AnyRef

  79. abstract class HtmlLink extends AnyRef

    The HtmlLink class represents a link in a specification with an identifier (either a spec name, or a string) and link elements.

  80. case class LazyExecutingFragment(f: () ⇒ ExecutedFragment, original: Fragment) extends ExecutingFragment with Product with Serializable

    embed an executing Fragment into a function to execute it on demand

  81. case class Linked(link: Option[HtmlLink] = None, seeOnly: Boolean = false, hidden: Boolean = false) extends Product with Serializable

    encapsulation of the linking behaviour

  82. case class MarkdownLink(name: String, url: String) extends Product with Serializable

    This class provides functionalities for manipulating Markdown links

  83. case class MutableCreationPath(path: Seq[Int]) extends CreationPath with Product with Serializable

  84. trait NoAutoExamples extends NoBooleanAutoExamples with NoResultAutoExamples with NoMatchResultAutoExamples with NoDataTableAutoExamples

    This trait ca be used to deactivate all automatic conversions to examples

  85. trait NoBangExamples extends FragmentsBuilder

    This trait deactivates the implicit on Strings which is used to create examples with !

    This trait deactivates the implicit on Strings which is used to create examples with !

    This is useful to avoid conflict with DataTables

  86. trait NoBooleanAutoExamples extends AutoExamples

    This trait can be used to deactivate the Boolean conversions to fragments and examples

  87. trait NoContexts extends Contexts

    Use this trait to deactivate the Contexts implicits

  88. trait NoDataTableAutoExamples extends AutoExamples

    This trait can be used to deactivate the DataTable conversions to fragments and examples

  89. trait NoFragmentsBuilder extends FragmentsBuilder with NoToHtmlLinkFragments

    This trait can be used to deactivate implicits for building fragments

  90. trait NoMatchResultAutoExamples extends AutoExamples

    This trait can be used to deactivate the MatchResult conversions to fragments and examples

  91. trait NoResultAutoExamples extends AutoExamples

    This trait can be used to deactivate the Result conversions to fragments and examples

  92. trait NoToHtmlLinkFragments extends FragmentsBuilder

    This trait can be used to deactivate implicits for ~ and ~/ operators on strings

  93. trait Outside[+T] extends AnyRef

    The Outside trait can be inherited by classes which will execute some code inside the outside method provided by the context.

    The Outside trait can be inherited by classes which will execute some code inside the outside method provided by the context.

    This can be used for example to execute some code inside a webapp session, using the session object to create expectations

    See also

    Example to understand why the type T must : AsResult

  94. case class PromisedExecutingFragment(promised: Promise[ExecutedFragment], original: Fragment) extends ExecutingFragment with Product with Serializable

    embed an executed Fragment into a promise

  95. trait RegexFragment extends AnyRef

  96. trait RegexStepsFactory extends ImplicitParameters

  97. class ResultsContext extends StoredResultsContext

    This class is used to evaluate a Context as a sequence of results by side-effects.

    This class is used to evaluate a Context as a sequence of results by side-effects.

    See also

    the AllExpectations trait for its use

  98. trait Scope extends matcher.Scope

    Marker trait that is used to create a new scope with variables and implicitly converted to a Success in a mutable Specification

  99. case class SimpleFormattedString(t: String = "", formatting: Formatting = Formatting(), isEmpty: Boolean = false, isCode: Boolean = true) extends FormattedString with Product with Serializable

  100. trait Snippets extends execute.Snippets

    Snippets of code can be extracted from interpolated specification strings.

    Snippets of code can be extracted from interpolated specification strings.

    When you want to specify that a piece of code must be included in the specification output, you can use the snippet method to execute a this code and use the text in the output. If you just want to output part of the code you need to delimit it with some comments // 8<------- (with as many dashes as you want)

    Generally the last value of a snippet will be displayed separately but it is possible to avoid this by using the mute method on a Snippet.

    It is also possible to check that the result value is equal to a specific value by using the check[R : AsResult](f: T => R) method.

  101. case class SpecEnd(specName: SpecName, isSeeOnlyLink: Boolean = false, location: Location = new Location) extends Fragment with Product with Serializable

    End of a specification.

    End of a specification.

    This marks the end of the Specification and must have the same name as the corresponding SpecStart.

    There is a Boolean flag on a SpecEnd indicating if the whole specification was just executed as a link (for an index page for example) In this case we must not store statistics for this specification (see Storing.scala)

  102. case class SpecHtmlLink(name: SpecName, beforeText: String = "", linkText: String = "", afterText: String = "", tip: String = "") extends HtmlLink with Product with Serializable

  103. trait SpecIdentification extends AnyRef

    Identification information for a specification

  104. sealed trait SpecName extends SpecIdentification

    Name declaration for a specification

  105. trait SpecPart extends AnyRef

  106. case class SpecStart(specName: SpecName, arguments: Arguments = Arguments(), linked: Linked = Linked(), location: Location = new Location) extends Fragment with Product with Serializable

    Start of a specification.

    Start of a specification.

    This fragment keeps 2 important pieces of information:

    • the name of the specification (which is derived from the specification class or from a user-defined title) That name stores a unique id for the specification
    • the arguments for that specification
  107. trait SpecificationInclusion extends AnyRef

    additional methods to include other specifications or Fragments

  108. trait SpecificationNavigation extends AnyRef

    This trait models "what happens" before a fragment is created in terms of side-effects.

    This trait models "what happens" before a fragment is created in terms of side-effects.

    For now it is mostly used for unit specifications where side-effects can occur inside "blocks" when creating examples. We suppose that acceptance specifications do not have side-effects at creation time.

  109. trait SpecificationStringContext extends AnyRef

    Allow to use fragments inside interpolated strings starting with s2 in order to build the specification content

  110. trait SpecificationStructure extends DefaultFragmentsFormatting

    The structure of a Specification is simply defined as a sequence of fragments

  111. case class Stats(examples: Int = 0, successes: Int = 0, expectations: Int = 0, failures: Int = 0, errors: Int = 0, pending: Int = 0, skipped: Int = 0, trend: Option[Stats] = None, timer: SimpleTimer = new SimpleTimer) extends Product with Serializable

    The Stats class store results for the number of: - successes - expectations - failures - errors - pending - skipped

    The Stats class store results for the number of: - successes - expectations - failures - errors - pending - skipped

    for each example

  112. case class Step(step: LazyParameter[Result], stopOnFail: Boolean = false, location: Location = new Location, isolable: Boolean = true) extends Fragment with Executable with Isolable with Product with Serializable

    An Step creates a fragment that will either return an Error Result if there is an exception or a Success.

    An Step creates a fragment that will either return an Error Result if there is an exception or a Success.

    It is usually used to do some initialisation or cleanup before or after all the Fragments.

    Note that a Step fragment will not be reported in the output.

    See also

    the ContextSpec specification

  113. trait StoredExpectationsContext extends StoredExpectations with StoredResultsContext

    This trait can be used when it is not desirable to use the AllExpectations trait, that is, when the specification examples must be executed concurrently and not isolated.

    This trait can be used when it is not desirable to use the AllExpectations trait, that is, when the specification examples must be executed concurrently and not isolated.

    See also

    the UserGuide on how to use this trait

  114. trait StoredResultsContext extends Context

    This trait is a context which will use the results provided by the class inheriting that trait.

    This trait is a context which will use the results provided by the class inheriting that trait. It evaluates the result of an example, which is supposed to create side-effects and returns the 'storedResults' as the summary of all results

  115. trait Tables extends DataTables with NoBangExamples

  116. trait Tags extends AnyRef

    The tags trait allows the creation of Tags fragments in a Specification

  117. trait TagsAssociation extends AnyRef

  118. case class Text(text: SimpleFormattedString, location: Location = new Location) extends Fragment with Product with Serializable

    Free text, describing the system to specify

  119. abstract class Then[T] extends RegexExtractor[Either[Result, T], (T, Result)]

    This step define checks in a sequence of Given / When / Then.

    This step define checks in a sequence of Given / When / Then.

    It must define the extract function taking the state of extracted values, T, and return a Result

  120. case class UrlHtmlLink(url: String, beforeText: String = "", linkText: String = "", afterText: String = "", tip: String = "") extends HtmlLink with Product with Serializable

  121. abstract class When[P, T] extends RegexExtractor[P, T]

    This step define conditions in a sequence of Given / When / Then.

    This step define conditions in a sequence of Given / When / Then.

    It must define the extract function taking the previous state of extracted values, P, and creating a new state of type T from the extracted values

Value Members

  1. object Action extends Product with Serializable

  2. object Context

  3. object Contexts extends Contexts

  4. object DefaultFragmentsFormatting extends DefaultFragmentsFormatting

  5. object Example extends Product with Serializable

  6. object ExamplesTimeout extends ExamplesTimeout

  7. object ExecutedText1

  8. object Fixture

  9. object FormFormattedString extends Serializable

  10. object FormattedString

  11. object FormattingFragments extends FormattingFragments

  12. object FormattingTags extends FormattingTags

  13. object Forms extends FormsBuilder with FormFragmentsBuilder with DecoratedProperties

  14. object Fragments extends Serializable

    Utility methods for fragments

  15. object FragmentsBuilder extends FragmentsBuilder

  16. object Given extends ImplicitParameters

    implicit conversions to create Given objects

  17. object HtmlLink

  18. object S2Macro

  19. object SpecificationStructure

    methods for creating SpecificationStructure instances from fragments

  20. object StandardFragments

    Those standard Fragments are used to format the specification text:

    Those standard Fragments are used to format the specification text:

    • End() can be used to "reset" the indentation of text
    • Br() can be used to insert a newline
    • Tab() can be used to increment the indentation level
    • Backtab() can be used to decrement the indentation level
  21. object Stats extends Product with Serializable

    The Stats class store results for the number of: - successes - expectations - failures - errors - pending - skipped

    The Stats class store results for the number of: - successes - expectations - failures - errors - pending - skipped

    for each example

  22. object Step extends ImplicitParameters with Product with Serializable

  23. object TagFragments

    Those fragments are used to tag other fragments in a specification\

  24. object Tags extends Tags

  25. object Text extends Serializable

  26. object Then extends ImplicitParameters

    implicit conversions to create Then objects

  27. object When extends ImplicitParameters

    implicit conversions to create When objects

  28. package gen

  29. package script

  30. object so

Ungrouped