SpecificationCreation

trait SpecificationCreation extends SpecificationCreation with FormattingFragments with MutableDsl with ArgumentsShortcuts with ArgumentsDsl

Trait for creating a mutable specification

trait TagDsl
trait TitleDsl
trait ActionDsl
trait TextDsl
trait ExampleDsl1
trait ExampleDsl0
trait BlockDsl
trait BlockCreation
trait S2StringContext1
trait ArgumentsShortcuts
trait ArgumentsArgs
trait ArgProperties
trait ArgumentsCreation
trait TitleDsl
trait SpecStructureDslLowImplicits
trait AcceptanceDsl1
trait ActionDsl
trait TagDsl
trait SpecStructureDsl1
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class BangExample(d: String)
Inherited from:
ExampleDsl
class BlockExample(d: String) extends BlockExample0
Inherited from:
ExampleDsl1
class BlockExample0(d: String)
Inherited from:
ExampleDsl0
implicit implicit class FragmentTaggedAs(f: => Fragment)

This implicit allows to add tags and sections after the examples

This implicit allows to add tags and sections after the examples

Inherited from:
TagDsl
implicit implicit class FragmentsTaggedAs(fs: => Fragments)

This implicit allows to add tags and sections after the examples

This implicit allows to add tags and sections after the examples

Inherited from:
TagDsl
implicit implicit class HiddenFragment(fragment: Fragment)
Inherited from:
FragmentsDsl
class MutableBangExample(d: String) extends BangExample
Inherited from:
ExampleDsl
class MutableTitleOps(s: String) extends TitleOps
Inherited from:
TitleDsl
implicit implicit class MutedFragment(fragment: Fragment)
Inherited from:
FragmentsDsl
class TitleOps(s: String)
Inherited from:
TitleDsl
class WarningForgottenOperator(s: String)
Inherited from:
BlockDsl
implicit implicit class appendSpecStructureToFragment(f: Fragment)
Inherited from:
SpecStructureDsl
implicit implicit class appendSpecStructureToFragments(fs: => Fragments)
implicit implicit class appendSpecStructureToSpecHeader(header: SpecHeader)
Inherited from:
SpecStructureDsl
implicit implicit class appendSpecStructureToSpecStructure(structure: SpecStructure)
Inherited from:
SpecStructureDsl
implicit implicit class appendSpecStructureToString(s: String)
Inherited from:
SpecStructureDsl
implicit implicit class appendToArguments(args: Arguments)
Inherited from:
SpecStructureDsl1
implicit implicit class appendToFragment(f: Fragment)
Inherited from:
FragmentsDsl
implicit implicit class appendToFragments(fs: Fragments)
Inherited from:
FragmentsDsl
implicit implicit class appendToString(s: String)
Inherited from:
FragmentsDsl
implicit implicit class describe(d: String)
Inherited from:
BlockDsl
implicit implicit class fragmentFormatting(f: => Fragment)
Inherited from:
TextDsl
implicit implicit class fragmentsFormatting(fs: => Fragments)
Inherited from:
TextDsl
implicit implicit class linkFragment(alias: String)
Inherited from:
ReferenceDsl
implicit implicit class mutableLinkFragment(alias: String) extends linkFragment
Inherited from:
ReferenceDsl
implicit implicit class mutableSeeFragment(alias: String) extends seeFragment
Inherited from:
ReferenceDsl
implicit implicit class seeFragment(alias: String)
Inherited from:
ReferenceDsl
implicit implicit class specificationInStringContext(sc: StringContext)
implicit implicit class textFragment(s: String)
Inherited from:
TextDsl

Value members

Concrete methods

override def s2(content: String, Yrangepos: Boolean, texts: Seq[String], textsStartPositions: Seq[String], textsEndPositions: Seq[String], variables: Seq[InterpolatedFragment], rangeExpressions: Seq[String]): Fragments

add fragments created with the s2 interpolated string

add fragments created with the s2 interpolated string

Definition Classes

Inherited methods

override def action(a: => Any): Fragment
Definition Classes
Inherited from:
ActionDsl
def addBacktab(n: Int): Fragment
Inherited from:
TextCreation
Inherited from:
TextCreation
def addBreak(n: Int): Fragment
Inherited from:
TextCreation
Inherited from:
TextCreation
def addFragment(fragment: Fragment): Fragment
Inherited from:
MutableFragmentBuilder
def addFragmentBlockWithText(text: String, f: => Fragment): Fragment
Inherited from:
BlockDsl
def addFragmentsBlockWithText(text: String, fs: => Fragments)(implicit p1: ImplicitParam1): Fragments
Inherited from:
BlockDsl
def addParagraph(s: String, n: Int): Fragment
Inherited from:
TextCreation
def addSections(): Unit
Inherited from:
MutableFragmentBuilder
def addTab(n: Int): Fragment
Inherited from:
TextCreation
Inherited from:
TextCreation
def addText(s: String): Fragment
Inherited from:
TextCreation
override def args(ex: ArgProperty[String], include: ArgProperty[String], exclude: ArgProperty[String], was: ArgProperty[String], plan: ArgProperty[Boolean], skipAll: ArgProperty[Boolean], stopOnFail: ArgProperty[Boolean], stopOnError: ArgProperty[Boolean], stopOnIssue: ArgProperty[Boolean], stopOnSkip: ArgProperty[Boolean], sequential: ArgProperty[Boolean], batchSize: ArgProperty[Int], asap: ArgProperty[Boolean], isolated: ArgProperty[Boolean], xonly: ArgProperty[Boolean], showOnly: ArgProperty[String], color: ArgProperty[Boolean]): Arguments

shorthand method to create an Arguments object

shorthand method to create an Arguments object

Definition Classes
ArgumentsCreation -> ArgumentsCreation
Inherited from:
ArgumentsCreation
def batchSize(n: Int): Arguments
Returns:

arguments for a specification where examples must in a given batch size

Inherited from:
ArgumentsShortcuts
override def blockExample0(d: String): BlockExample0
Definition Classes
ExampleDsl1 -> ExampleDsl0
Inherited from:
ExampleDsl1
override def br: Fragment
override def bt(n: Int): Fragment
override def bt: Fragment
def colors(c: Colors): Arguments

shortcut to set new Colors

shortcut to set new Colors

Inherited from:
ArgumentsShortcuts
def diffs(show: Boolean, separators: String, triggerSize: Int, diffRatio: Int, shortenSize: Int, full: Boolean, seqTriggerSize: Int, seqMaxSize: Int): Arguments

shortcut to display the differences with some specific parameters

shortcut to display the differences with some specific parameters

Inherited from:
ArgumentsShortcuts
override def end: Fragment
def exclude(tags: String): Arguments

shortcut to exclude some tagged fragments

shortcut to exclude some tagged fragments

Inherited from:
ArgumentsShortcuts
def excludeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

shortcut to add exclude trace patterns

shortcut to add exclude trace patterns

Inherited from:
ArgumentsShortcuts
def excludeTrace(patterns: String*): IncludeExcludeStackTraceFilter

shortcut to create a stackTrace filter to exclude only some elements

shortcut to create a stackTrace filter to exclude only some elements

Inherited from:
ArgumentsShortcuts
Inherited from:
FragmentsFactory
def fragmentsBlock(fragments: Seq[Fragment], offset: Int): Fragments

create a block of new fragments where each of them is separated by a newline and there is a specific offset from the left margin

create a block of new fragments where each of them is separated by a newline and there is a specific offset from the left margin

Inherited from:
FragmentsDsl
def fullStackTrace: Arguments

shortcut to filter nothing

shortcut to filter nothing

Inherited from:
ArgumentsShortcuts
Inherited from:
MutableFragmentBuilder
def include(tags: String): Arguments

shortcut to include only some tagged fragments

shortcut to include only some tagged fragments

Inherited from:
ArgumentsShortcuts
def includeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

shortcut to add include trace patterns

shortcut to add include trace patterns

Inherited from:
ArgumentsShortcuts
def includeTrace(patterns: String*): IncludeExcludeStackTraceFilter

shortcut to create a stackTrace filter to include only some elements

shortcut to create a stackTrace filter to include only some elements

Inherited from:
ArgumentsShortcuts
def isolated: Arguments
Returns:

arguments for a specification where examples must be executed in their own specification

Inherited from:
ArgumentsShortcuts
def nocolor: Arguments

shortcut to avoid colored output

shortcut to avoid colored output

Inherited from:
ArgumentsShortcuts
def only(examples: String): Arguments

shortcut to execute and print only some examples

shortcut to execute and print only some examples

Inherited from:
ArgumentsShortcuts
override def p: Fragments
def plan: Arguments

shortcut to show only the text without any execution

shortcut to show only the text without any execution

Inherited from:
ArgumentsShortcuts
override def section(tag: NamedTag): Fragment
Definition Classes
Inherited from:
TagDsl
override def section(names: String*): Fragment
Definition Classes
Inherited from:
TagDsl
override def see(s: => SpecificationStructure): Fragment
Definition Classes
Inherited from:
ReferenceDsl
override def see(s: SpecStructure): Fragment
Definition Classes
Inherited from:
ReferenceDsl
def sequential: Arguments
Returns:

arguments for a specification where examples must be executed sequentially

Inherited from:
ArgumentsShortcuts
def setArguments(a: Arguments): Arguments
def setTitle(t: String): SpecHeader
Inherited from:
MutableHeaderBuilder
def showOnly(s: String): Arguments

shortcut to print only some statuses

shortcut to print only some statuses

Inherited from:
ArgumentsShortcuts
def skipAll: Arguments

shortcut to skip all examples

shortcut to skip all examples

Inherited from:
ArgumentsShortcuts
def skipAllIf(condition: => Boolean): Arguments

shortcut to skip all examples when a condition is true. if the condition throws an exception, its stacktrace is not printed and all the examples are skipped

shortcut to skip all examples when a condition is true. if the condition throws an exception, its stacktrace is not printed and all the examples are skipped

Inherited from:
ArgumentsShortcuts
def skipAllUnless(condition: => Boolean): Arguments

shortcut to skip all examples when a condition is false.

shortcut to skip all examples when a condition is false.

Inherited from:
ArgumentsShortcuts
override def step(a: => Any, global: Boolean): Fragment
Definition Classes
Inherited from:
ActionDsl
override def step(a: => Any): Fragment
Definition Classes
Inherited from:
ActionDsl
def stopOnFail: Arguments

shortcut to stop after the first failure or error

shortcut to stop after the first failure or error

Inherited from:
ArgumentsShortcuts
def stopOnSkip: Arguments

shortcut to stop after the first skipped result

shortcut to stop after the first skipped result

Inherited from:
ArgumentsShortcuts
def stopWhen(f: Result => Boolean): Fragment
Inherited from:
ActionDsl
def stopWhen(r: Result): Fragment
Inherited from:
ActionDsl
def stopWhenFail(when: => Boolean): Fragment
Inherited from:
ActionDsl
Inherited from:
ActionDsl
def stopWhenSkipped(when: => Boolean): Fragment
Inherited from:
ActionDsl
override def t(n: Int): Fragment
override def t: Fragment
override def tag(tag: NamedTag): Fragment
Definition Classes
Inherited from:
TagDsl
override def tag(names: String*): Fragment
Definition Classes
Inherited from:
TagDsl
def unbatched: Arguments
Returns:

arguments for a specification where examples must be executed inside just one big batch

Inherited from:
ArgumentsShortcuts
def updateArguments(a: Arguments): Arguments
def was(s: String): Arguments

shortcut to include only examples with some previous statuses

shortcut to include only examples with some previous statuses

Inherited from:
ArgumentsShortcuts
def xonly: Arguments

shortcut to print only failures and errors

shortcut to print only failures and errors

Inherited from:
ArgumentsShortcuts

Inherited fields

lazy override val args: ArgumentsNamespaceMutable
Inherited from:
ArgumentsCreation

Implicits

Inherited implicits

final implicit def FragmentTaggedAs(f: => Fragment): FragmentTaggedAs

This implicit allows to add tags and sections after the examples

This implicit allows to add tags and sections after the examples

Inherited from:
TagDsl
final implicit def FragmentsTaggedAs(fs: => Fragments): FragmentsTaggedAs

This implicit allows to add tags and sections after the examples

This implicit allows to add tags and sections after the examples

Inherited from:
TagDsl
final implicit def HiddenFragment(fragment: Fragment): HiddenFragment
Inherited from:
FragmentsDsl
final implicit def MutedFragment(fragment: Fragment): MutedFragment
Inherited from:
FragmentsDsl
> result ***-e97" data-f-keywords="implicit" data-f-inherited="BlockDsl">> result ***-e97" class="documentableAnchor">

adding a conflicting implicit to warn the user when a >> was forgotten

adding a conflicting implicit to warn the user when a >> was forgotten

Inherited from:
> result ***-e97">BlockDsl
implicit def anyAsResultIsInterpolatedFragment(r: => Function0Result): InterpolatedFragment
Inherited from:
S2StringContext
implicit def anyToArgProperty[T](t: => T): ArgProperty[T]
Inherited from:
ArgProperties
Inherited from:
SpecStructureDslLowImplicits
Inherited from:
SpecStructureDsl
final implicit def appendToArguments(args: Arguments): appendToArguments
Inherited from:
SpecStructureDsl1
Inherited from:
FragmentsDsl
Inherited from:
FragmentsDsl
final implicit def appendToString(s: String): appendToString
Inherited from:
FragmentsDsl
implicit def asResultIsInterpolatedFragment[R : AsResult](r: => R): InterpolatedFragment
Inherited from:
S2StringContext1
implicit override def bangExample(d: String): BangExample
Definition Classes
Inherited from:
ExampleDsl
implicit def blockExample(d: String): BlockExample
Inherited from:
ExampleDsl1
final implicit def describe(d: String): describe
Inherited from:
BlockDsl
Inherited from:
TextDsl
Inherited from:
S2StringContext1
Inherited from:
FragmentsDsl
Inherited from:
SpecStructureDsl1
Inherited from:
TextDsl
final implicit def linkFragment(alias: String): linkFragment
Inherited from:
ReferenceDsl
final implicit def mutableLinkFragment(alias: String): mutableLinkFragment
Inherited from:
ReferenceDsl
final implicit def mutableSeeFragment(alias: String): mutableSeeFragment
Inherited from:
ReferenceDsl
implicit def resultAsSpecStructure[R : AsResult](r: => R): SpecStructure
Inherited from:
SpecStructureDslLowImplicits
final implicit def seeFragment(alias: String): seeFragment
Inherited from:
ReferenceDsl
Inherited from:
SpecStructureDsl
final implicit def specificationInStringContext(sc: StringContext): specificationInStringContext
Inherited from:
S2StringContext
implicit def stringAsSpecStructure(s: String): SpecStructure
Inherited from:
SpecStructureDsl
implicit def stringFunctionIsInterpolatedFragment[R : AsResult](f: String => R): InterpolatedFragment
Inherited from:
S2StringContext
Inherited from:
S2StringContext
final implicit def textFragment(s: String): textFragment
Inherited from:
TextDsl
implicit override def title(s: String): MutableTitleOps
Definition Classes
Inherited from:
TitleDsl