org.specs2.specification.dsl.mutable

SpecificationCreation

trait SpecificationCreation extends create.SpecificationCreation with FormattingFragments with AutoExamples with MutableDsl with ArgumentsShortcuts with ArgumentsDsl

Trait for creating a mutable specification

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SpecificationCreation
  2. MutableDsl
  3. TagDsl
  4. MutableFragmentBuilder
  5. ReferenceDsl
  6. ArgumentsDsl
  7. ArgumentsCreation
  8. MutableArgumentsBuilder
  9. TitleDsl
  10. MutableHeaderBuilder
  11. ActionDsl
  12. TextDsl
  13. TextCreation
  14. ExampleDsl
  15. ExampleDsl1
  16. BlockDsl
  17. BlockCreation
  18. AutoExamples
  19. FormattingFragments
  20. FragmentBuilder
  21. SpecificationCreation
  22. FormattingFragments
  23. S2StringContext
  24. S2StringContextImplicitsControl
  25. S2StringContext1
  26. S2StringContextCreation
  27. ArgumentsShortcuts
  28. ArgumentsArgs
  29. ArgProperties
  30. ArgumentsCreation
  31. AutoExamples
  32. AcceptanceDsl
  33. ReferenceDsl
  34. ExampleDsl
  35. TitleDsl
  36. SpecStructureDsl
  37. SpecStructureDslLowImplicits
  38. FragmentsDsl
  39. AcceptanceDsl1
  40. ActionDsl
  41. TagDsl
  42. ReferenceCreation
  43. SpecStructureDsl1
  44. FragmentsFactory
  45. AnyRef
  46. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class BangExample extends AnyRef

    Definition Classes
    ExampleDsl
  2. class BlockExample extends AnyRef

    Definition Classes
    ExampleDsl1
  3. implicit class FragmentTaggedAs extends AnyRef

    This implicit allows to add tags and sections _after_ the examples

  4. implicit class FragmentsTaggedAs extends AnyRef

    This implicit allows to add tags and sections _after_ the examples

  5. implicit class HiddenFragment extends AnyRef

    Definition Classes
    FragmentsDsl
  6. class MutableBangExample extends BangExample

    Definition Classes
    ExampleDsl
  7. class MutableTitleOps extends TitleOps

    Definition Classes
    TitleDsl
  8. class TitleOps extends AnyRef

    Definition Classes
    TitleDsl
  9. class WarningForgottenOperator extends AnyRef

    Definition Classes
    BlockDsl
  10. implicit class appendSpecStructureToFragment extends AnyRef

    Definition Classes
    SpecStructureDsl
  11. implicit class appendSpecStructureToFragments extends AnyRef

    Definition Classes
    SpecStructureDslLowImplicits
  12. implicit class appendSpecStructureToSpecHeader extends AnyRef

    Definition Classes
    SpecStructureDsl
  13. implicit class appendSpecStructureToSpecStructure extends AnyRef

    Definition Classes
    SpecStructureDsl
  14. implicit class appendSpecStructureToString extends AnyRef

    Definition Classes
    SpecStructureDsl
  15. implicit class appendToArguments extends AnyRef

    Definition Classes
    SpecStructureDsl1
  16. implicit class appendToFragment extends AnyRef

    Definition Classes
    FragmentsDsl
  17. implicit class appendToFragments extends AnyRef

    Definition Classes
    FragmentsDsl
  18. implicit class appendToString extends AnyRef

    Definition Classes
    FragmentsDsl
  19. implicit class describe extends AnyRef

    Definition Classes
    BlockDsl
  20. implicit class fragmentFormatting extends AnyRef

    Definition Classes
    TextDsl
  21. implicit class fragmentsFormatting extends AnyRef

    Definition Classes
    TextDsl
  22. implicit class linkFragment extends AnyRef

    Definition Classes
    ReferenceDsl
  23. implicit class mutableLinkFragment extends linkFragment

    Definition Classes
    ReferenceDsl
  24. implicit class mutableSeeFragment extends seeFragment

    Definition Classes
    ReferenceDsl
  25. implicit class seeFragment extends AnyRef

    Definition Classes
    ReferenceDsl
  26. implicit class specificationInStringContext extends AnyRef

    Definition Classes
    S2StringContextCreation
  27. implicit class textFragment extends AnyRef

    Definition Classes
    TextDsl

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. implicit def ***If you see this message this means that you've forgotten an operator after the description string: you should write "example" >> result ***(s: String): WarningForgottenOperator

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

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

    Definition Classes
    BlockDsl
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def action(a: ⇒ Any): Fragment

    Definition Classes
    ActionDslActionDsl
  8. def addBacktab(n: Int): Fragment

    Definition Classes
    TextCreation
  9. def addBacktab: Fragment

    Definition Classes
    TextCreation
  10. def addBreak(n: Int): Fragment

    Definition Classes
    TextCreation
  11. def addBreak: Fragment

    Definition Classes
    TextCreation
  12. def addFragment(fragment: Fragment): Fragment

  13. def addFragmentBlock(f: ⇒ Fragment): Fragment

  14. def addFragments(fragments: Fragments): Fragments

  15. def addFragmentsBlock(fs: ⇒ Fragments): Fragments

  16. def addParagraph(s: String, n: Int = 2): Fragment

    Definition Classes
    TextCreation
  17. def addTab(n: Int): Fragment

    Definition Classes
    TextCreation
  18. def addTab: Fragment

    Definition Classes
    TextCreation
  19. def addText(s: String): Fragment

    Definition Classes
    TextCreation
  20. implicit def anyAsResultIsInterpolatedFragment(r: ⇒ Function0Result): InterpolatedFragment

    Definition Classes
    S2StringContext
  21. implicit def anyToArgProperty[T](t: ⇒ T): ArgProperty[T]

    Definition Classes
    ArgProperties
  22. def args(ex: ArgProperty[String] = ArgProperty[String](), include: ArgProperty[String] = ArgProperty[String](), exclude: ArgProperty[String] = ArgProperty[String](), was: ArgProperty[String] = ArgProperty[String](), plan: ArgProperty[Boolean] = ArgProperty[Boolean](), skipAll: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnFail: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnSkip: ArgProperty[Boolean] = ArgProperty[Boolean](), sequential: ArgProperty[Boolean] = ArgProperty[Boolean](), asap: ArgProperty[Boolean] = ArgProperty[Boolean](), isolated: ArgProperty[Boolean] = ArgProperty[Boolean](), xonly: ArgProperty[Boolean] = ArgProperty[Boolean](), showOnly: ArgProperty[String] = ArgProperty[String](), color: ArgProperty[Boolean] = ArgProperty[Boolean]()): Arguments

    shorthand method to create an Arguments object

    shorthand method to create an Arguments object

    Definition Classes
    ArgumentsCreationArgumentsCreation
  23. lazy val args: ArgumentsNamespaceMutable

    Definition Classes
    ArgumentsCreationArgumentsCreation
  24. implicit def argumentsFunctionIsInterpolatedFragment[R](f: (Arguments) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  25. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  26. implicit def asResultIsInterpolatedFragment[R](r: ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext1
  27. implicit def bangExample(d: String): BangExample

    Definition Classes
    ExampleDslExampleDsl
  28. implicit def blockExample(d: String): BlockExample

    Definition Classes
    ExampleDsl1
  29. def br: Fragment

  30. def bt(n: Int): Fragment

  31. def bt: Fragment

  32. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def colors(c: Colors): Arguments

    shortcut to set new Colors

    shortcut to set new Colors

    Definition Classes
    ArgumentsShortcuts
  34. implicit def commandLineFunctionIsInterpolatedFragment[R](f: (CommandLine) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  35. def createExample[T](expression: String, code: ⇒ T, asResult: AsResult[T]): Fragments

    Definition Classes
    AutoExamplesAutoExamples
  36. def createExecutionInterpolatedFragment(execution: Execution): InterpolatedFragment

    Definition Classes
    S2StringContextCreation
  37. implicit def descriptionToFragmentsIsInterpolatedFragment(fragments: (String) ⇒ Fragments): InterpolatedFragment

    Definition Classes
    S2StringContext
  38. def diffs(show: Boolean = true, separators: String = "[]", triggerSize: Int = 20, diffRatio: Int = 30, shortenSize: Int = 5, full: Boolean = false, seqTriggerSize: Int = 0, seqMaxSize: Int = 1000000): Arguments

    shortcut to display the differences with some specific parameters

    shortcut to display the differences with some specific parameters

    Definition Classes
    ArgumentsShortcuts
  39. implicit def eg[T](code: ⇒ T)(implicit arg0: AsResult[T]): Fragments

    Definition Classes
    AutoExamples
    Annotations
    @macroImpl( ... )
  40. def end: Fragment

  41. implicit def envFunctionIsInterpolatedFragment[R](f: (Env) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  42. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  44. def exclude(tags: String): Arguments

    shortcut to exclude some tagged fragments

    shortcut to exclude some tagged fragments

    Definition Classes
    ArgumentsShortcuts
  45. def excludeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to add exclude trace patterns

    shortcut to add exclude trace patterns

    Definition Classes
    ArgumentsShortcuts
  46. 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

    Definition Classes
    ArgumentsShortcuts
  47. implicit def executionContextFunctionIsInterpolatedFragment[R](f: (ExecutionContext) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  48. implicit def executionIsInterpolatedFragment(execution: Execution): InterpolatedFragment

    Definition Classes
    S2StringContext
  49. implicit def executorServiceFunctionIsInterpolatedFragment[R](f: (ExecutorService) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  50. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  51. implicit def fragmentAsSpecStructure(f: Fragment): SpecStructure

    Definition Classes
    SpecStructureDsl
  52. def fragmentFactory: FragmentFactory

    Attributes
    protected
    Definition Classes
    FragmentsFactory
  53. implicit def fragmentIsInterpolatedFragment(f: ⇒ Fragment): InterpolatedFragment

    Definition Classes
    S2StringContext1
  54. implicit def fragmentToFragments(f: Fragment): Fragments

    Definition Classes
    FragmentsDsl
  55. implicit def fragmentsAsSpecStructure(fs: ⇒ Fragments): SpecStructure

    Definition Classes
    SpecStructureDsl1
  56. def fragmentsBlock(fragments: Seq[Fragment], offset: Int = 2): 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

    Definition Classes
    FragmentsDsl
  57. implicit def fragmentsIsInterpolatedFragment(fragments: Fragments): InterpolatedFragment

    Definition Classes
    S2StringContext
  58. def fullStackTrace: Arguments

    shortcut to filter nothing

    shortcut to filter nothing

    Definition Classes
    ArgumentsShortcuts
  59. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  60. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  61. def include(tags: String): Arguments

    shortcut to include only some tagged fragments

    shortcut to include only some tagged fragments

    Definition Classes
    ArgumentsShortcuts
  62. def includeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to add include trace patterns

    shortcut to add include trace patterns

    Definition Classes
    ArgumentsShortcuts
  63. 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

    Definition Classes
    ArgumentsShortcuts
  64. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  65. def isolated: Arguments

    returns

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

    Definition Classes
    ArgumentsShortcuts
  66. def link(s: ⇒ SpecificationStructure): Fragment

    Definition Classes
    ReferenceDslReferenceCreation
  67. def link(s: SpecStructure): Fragment

    Definition Classes
    ReferenceDslReferenceCreation
  68. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  69. def nocolor: Arguments

    shortcut to avoid colored output

    shortcut to avoid colored output

    Definition Classes
    ArgumentsShortcuts
  70. final def notify(): Unit

    Definition Classes
    AnyRef
  71. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  72. def only(examples: String): Arguments

    shortcut to execute and print only some examples

    shortcut to execute and print only some examples

    Definition Classes
    ArgumentsShortcuts
  73. def p: Fragments

  74. def plan: Arguments

    shortcut to show only the text without any execution

    shortcut to show only the text without any execution

    Definition Classes
    ArgumentsShortcuts
  75. implicit def resultAsSpecStructure[R](r: ⇒ R)(implicit arg0: AsResult[R]): SpecStructure

    Definition Classes
    SpecStructureDslLowImplicits
  76. def s2(content: String, Yrangepos: Boolean, texts: Seq[String], textsStartPositions: Seq[String], textsEndPositions: Seq[String], variables: Seq[InterpolatedFragment], rangeExpressions: Seq[String]): Fragments

    based on the interpolated variables and the expressions captured with the macro, create the appropriate fragments

    based on the interpolated variables and the expressions captured with the macro, create the appropriate fragments

    if the Yrangepos scalac option is not set then we use an approximated method to find the expressions texts

    Definition Classes
    S2StringContextCreation
  77. def section(tag: NamedTag): Fragment

    Definition Classes
    TagDslTagDsl
  78. def section(names: String*): Fragment

    Definition Classes
    TagDslTagDsl
  79. def see(s: ⇒ SpecificationStructure): Fragment

    Definition Classes
    ReferenceDslReferenceCreation
  80. def see(s: SpecStructure): Fragment

    Definition Classes
    ReferenceDslReferenceCreation
  81. def sequential: Arguments

    returns

    arguments for a specification where examples must be executed sequentially

    Definition Classes
    ArgumentsShortcuts
  82. def setArguments(a: Arguments): Arguments

    Definition Classes
    MutableArgumentsBuilder
  83. def setTitle(t: String): SpecHeader

    Definition Classes
    MutableHeaderBuilder
  84. def showOnly(s: String): Arguments

    shortcut to print only some statuses

    shortcut to print only some statuses

    Definition Classes
    ArgumentsShortcuts
  85. def skipAll: Arguments

    shortcut to skip all examples

    shortcut to skip all examples

    Definition Classes
    ArgumentsShortcuts
  86. def skipAllIf(condition: ⇒ Boolean): Arguments

    shortcut to skip all examples when a condition is true.

    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

    Definition Classes
    ArgumentsShortcuts
  87. 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.

    Definition Classes
    ArgumentsShortcuts
  88. implicit def specHeaderAsStructure(header: SpecHeader): SpecStructure

    Definition Classes
    SpecStructureDsl
  89. implicit def specStructureAsFragments(spec: SpecStructure): Fragments

    Definition Classes
    SpecStructureDsl
  90. implicit def specStructureIsInterpolatedFragment(s: SpecStructure): InterpolatedFragment

    Definition Classes
    S2StringContext
  91. def specificationFragments: (Env) ⇒ Fragments

    Definition Classes
    MutableFragmentBuilder
  92. implicit def specificationRefIsInterpolatedFragment(ref: SpecificationRef): InterpolatedFragment

    Definition Classes
    S2StringContext
  93. def specificationStructure: (Env) ⇒ SpecStructure

    Definition Classes
    MutableFragmentBuilder
  94. implicit def specificationStructureIsInterpolatedFragment(s: SpecificationStructure): InterpolatedFragment

    Definition Classes
    S2StringContext
  95. implicit def statsRepositoryFunctionIsInterpolatedFragment[R](f: (StatisticsRepository) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  96. def step(a: ⇒ Any, global: Boolean): Fragment

    Definition Classes
    ActionDslActionDsl
  97. def step(a: ⇒ Any): Fragment

    Definition Classes
    ActionDslActionDsl
  98. def stopOnFail: Arguments

    shortcut to stop after the first failure or error

    shortcut to stop after the first failure or error

    Definition Classes
    ArgumentsShortcuts
  99. def stopOnSkip: Arguments

    shortcut to stop after the first skipped result

    shortcut to stop after the first skipped result

    Definition Classes
    ArgumentsShortcuts
  100. def stopWhen(f: (Result) ⇒ Boolean): Fragment

    Definition Classes
    ActionDsl
  101. def stopWhen(r: Result): Fragment

    Definition Classes
    ActionDsl
  102. def stopWhenFail(when: ⇒ Boolean): Fragment

    Definition Classes
    ActionDsl
  103. def stopWhenFail: Fragment

    Definition Classes
    ActionDsl
  104. def stopWhenSkipped(when: ⇒ Boolean): Fragment

    Definition Classes
    ActionDsl
  105. def stopWhenSkipped: Fragment

    Definition Classes
    ActionDsl
  106. implicit def stringAsSpecStructure(s: String): SpecStructure

    Definition Classes
    SpecStructureDsl
  107. implicit def stringFunctionIsInterpolatedFragment[R](f: (String) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  108. implicit def stringIsInterpolatedFragment(s: ⇒ String): InterpolatedFragment

    Definition Classes
    S2StringContext
  109. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  110. def t(n: Int): Fragment

  111. def t: Fragment

  112. def tag(tag: NamedTag): Fragment

    Definition Classes
    TagDslTagDsl
  113. def tag(names: String*): Fragment

    Definition Classes
    TagDslTagDsl
  114. implicit def title(s: String): MutableTitleOps

    Definition Classes
    TitleDslTitleDsl
  115. def toString(): String

    Definition Classes
    AnyRef → Any
  116. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  117. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  118. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  119. def was(s: String): Arguments

    shortcut to include only examples with some previous statuses

    shortcut to include only examples with some previous statuses

    Definition Classes
    ArgumentsShortcuts
  120. def xonly: Arguments

    shortcut to print only failures and errors

    shortcut to print only failures and errors

    Definition Classes
    ArgumentsShortcuts

Inherited from MutableDsl

Inherited from TagDsl

Inherited from MutableFragmentBuilder

Inherited from ReferenceDsl

Inherited from ArgumentsDsl

Inherited from ArgumentsCreation

Inherited from MutableArgumentsBuilder

Inherited from TitleDsl

Inherited from MutableHeaderBuilder

Inherited from ActionDsl

Inherited from TextDsl

Inherited from TextCreation

Inherited from ExampleDsl

Inherited from ExampleDsl1

Inherited from BlockDsl

Inherited from BlockCreation

Inherited from AutoExamples

Inherited from FormattingFragments

Inherited from FragmentBuilder

Inherited from FormattingFragments

Inherited from S2StringContext

Inherited from S2StringContext1

Inherited from S2StringContextCreation

Inherited from ArgumentsShortcuts

Inherited from ArgumentsArgs

Inherited from ArgProperties

Inherited from main.ArgumentsCreation

Inherited from create.AutoExamples

Inherited from AcceptanceDsl

Inherited from dsl.ReferenceDsl

Inherited from dsl.ExampleDsl

Inherited from dsl.TitleDsl

Inherited from SpecStructureDsl

Inherited from SpecStructureDslLowImplicits

Inherited from FragmentsDsl

Inherited from AcceptanceDsl1

Inherited from dsl.ActionDsl

Inherited from dsl.TagDsl

Inherited from ReferenceCreation

Inherited from SpecStructureDsl1

Inherited from FragmentsFactory

Inherited from AnyRef

Inherited from Any

Ungrouped