SpecificationCreation

org.specs2.specification.create.SpecificationCreation
trait SpecificationCreation extends AcceptanceDsl, AutoExamples, ArgumentsArgs, ArgumentsShortcuts, S2StringContext, FormattingFragments

Attributes

Graph
Supertypes
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

Members list

Type members

Inherited classlikes

trait ToFragments[T]

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ToSpecStructure[T1, T2]

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Show all
implicit class appendFragments[T1, T2](t1: T1)(using evidence$1: ToFragments[T1], evidence$2: ToFragments[T2])

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
implicit class appendSpecStructure[T1, T2](t1: T1)(using tss: ToSpecStructure[T1, T2])

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Conversion[Fragment, SpecStructure]
class Object
trait Matchable
class Any

Attributes

Inherited from:
S2StringContext
Supertypes
class Conversion[Fragments, Interpolated]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Conversion[SpecHeader, SpecStructure]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Conversion[SpecStructure, Fragments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
S2StringContext
Supertypes
class Conversion[SpecStructure, Interpolated]
class Object
trait Matchable
class Any

Attributes

Inherited from:
S2StringContext
Supertypes
class Conversion[SpecificationRef, Interpolated]
class Object
trait Matchable
class Any

Attributes

Inherited from:
S2StringContext
Supertypes
class Object
trait Matchable
class Any
object given_Conversion_String_SpecStructure extends Conversion[String, SpecStructure]

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Conversion[String, SpecStructure]
trait String => SpecStructure
class Object
trait Matchable
class Any

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
FragmentsDsl
Supertypes
trait ToFragments[Seq[Fragment]]
class Object
trait Matchable
class Any
object given_ToFragments_String extends ToFragments[String]

Attributes

Inherited from:
FragmentsDsl
Supertypes
trait ToFragments[String]
class Object
trait Matchable
class Any
object given_ToSpecStructure_Arguments_Arguments extends ToSpecStructure[Arguments, Arguments]

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Arguments, Arguments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Arguments, Fragment]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Arguments, Fragments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Arguments, SpecHeader]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Arguments, SpecStructure]
class Object
trait Matchable
class Any
object given_ToSpecStructure_Arguments_String extends ToSpecStructure[Arguments, String]

APPENDING TO ARGUMENTS

APPENDING TO ARGUMENTS

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Arguments, String]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Fragment, Arguments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

APPENDING TO A FRAGMENT

APPENDING TO A FRAGMENT

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Fragment, String]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

APPENDING TO FRAGMENTS

APPENDING TO FRAGMENTS

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[Fragments, String]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[SpecHeader, Arguments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[SpecHeader, String]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[SpecStructure, Arguments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

APPENDING TO A SPEC STRUCTURE

APPENDING TO A SPEC STRUCTURE

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

APPENDING TO A STRING

APPENDING TO A STRING

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[String, Fragment]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
trait ToSpecStructure[String, Fragments]
class Object
trait Matchable
class Any

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def action[T](a: => T)(using evidence$3: AsExecution[T]): Fragment

Attributes

Inherited from:
ActionDsl
def addExample(d: String, execution: => Execution): Fragment

Attributes

Inherited from:
ExampleDsl
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], sequentialRandom: ArgProperty[Boolean], batchSize: ArgProperty[Int], timeFactor: ArgProperty[Int], timeout: ArgProperty[FiniteDuration], asap: 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

Attributes

Inherited from:
ArgumentsCreation
def batchSize(n: Int): Arguments

Attributes

Returns

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

Inherited from:
ArgumentsShortcuts
def br: Fragment

Attributes

Inherited from:
FormattingFragments
def bt(n: Int): Fragment

Attributes

Inherited from:
FormattingFragments
def bt: Fragment

Attributes

Inherited from:
FormattingFragments
def colors(c: Colors): Arguments

shortcut to set new Colors

shortcut to set new Colors

Attributes

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

Attributes

Inherited from:
ArgumentsShortcuts
inline def eg[T](inline code: => T)(using asResult: AsResult[T]): Fragments

Attributes

Inherited from:
AutoExamples
def exclude(tags: String): Arguments

shortcut to exclude some tagged fragments

shortcut to exclude some tagged fragments

Attributes

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

shortcut to add exclude trace patterns

shortcut to add exclude trace patterns

Attributes

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

Attributes

Inherited from:
ArgumentsShortcuts

Attributes

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

Attributes

Inherited from:
FragmentsDsl
def fullStackTrace: Arguments

shortcut to filter nothing

shortcut to filter nothing

Attributes

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

shortcut to include only some tagged fragments

shortcut to include only some tagged fragments

Attributes

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

shortcut to add include trace patterns

shortcut to add include trace patterns

Attributes

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

Attributes

Inherited from:
ArgumentsShortcuts
def nocolor: Arguments

shortcut to avoid colored output

shortcut to avoid colored output

Attributes

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

shortcut to execute and print only some examples

shortcut to execute and print only some examples

Attributes

Inherited from:
ArgumentsShortcuts
def p: Fragments

Attributes

Inherited from:
FormattingFragments
def plan: Arguments

shortcut to show only the text without any execution

shortcut to show only the text without any execution

Attributes

Inherited from:
ArgumentsShortcuts

this function is introduced just to allow the mutable specification to register the newly created fragments

this function is introduced just to allow the mutable specification to register the newly created fragments

Attributes

Inherited from:
AutoExamples

this function is exposed so that it can be overridden with side-effects when using s2 strings in mutable specs

this function is exposed so that it can be overridden with side-effects when using s2 strings in mutable specs

Attributes

Inherited from:
S2StringContextCreation
def section(tag: NamedTag): Fragment

Attributes

Inherited from:
TagDsl
def section(names: String*): Fragment

Attributes

Inherited from:
TagDsl

Attributes

Inherited from:
ReferenceCreation

Attributes

Inherited from:
ReferenceCreation
def sequential: Arguments

Attributes

Returns

arguments for a specification where examples must be executed sequentially

Inherited from:
ArgumentsShortcuts
def sequentialRandom: Arguments

Attributes

Returns

arguments for a specification where examples must be executed sequentially but in a random order

Inherited from:
ArgumentsShortcuts
def showOnly(s: String): Arguments

shortcut to print only some statuses

shortcut to print only some statuses

Attributes

Inherited from:
ArgumentsShortcuts
def skipAll: Arguments

shortcut to skip all examples

shortcut to skip all examples

Attributes

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

Attributes

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.

Attributes

Inherited from:
ArgumentsShortcuts
def step[T](a: => T, global: Boolean)(using evidence$2: AsExecution[T]): Fragment

Attributes

Inherited from:
ActionDsl
def step[T](a: => T)(using evidence$1: AsExecution[T]): Fragment

Attributes

Inherited from:
ActionDsl
def stopOnFail: Arguments

shortcut to stop after the first failure or error

shortcut to stop after the first failure or error

Attributes

Inherited from:
ArgumentsShortcuts
def stopOnSkip: Arguments

shortcut to stop after the first skipped result

shortcut to stop after the first skipped result

Attributes

Inherited from:
ArgumentsShortcuts
def t(n: Int): Fragment

Attributes

Inherited from:
FormattingFragments
def t: Fragment

Attributes

Inherited from:
FormattingFragments
def tag(tag: NamedTag): Fragment

Attributes

Inherited from:
TagDsl
def tag(names: String*): Fragment

Attributes

Inherited from:
TagDsl
def title(s: String)(using nothing: Int): SpecHeader

Attributes

Inherited from:
TitleDsl
def unbatched: Arguments

Attributes

Returns

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

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

shortcut to include only examples with some previous statuses

shortcut to include only examples with some previous statuses

Attributes

Inherited from:
ArgumentsShortcuts
def xonly: Arguments

shortcut to print only failures and errors

shortcut to print only failures and errors

Attributes

Inherited from:
ArgumentsShortcuts

Inherited fields

lazy val args: ArgumentsNamespace

Attributes

Inherited from:
ArgumentsCreation

Givens

Inherited givens

The FragmentFactory has to be passed as an implicit in order to be inlined in macros

The FragmentFactory has to be passed as an implicit in order to be inlined in macros

Attributes

Inherited from:
S2StringContextCreation

Attributes

Inherited from:
FragmentsDsl

Attributes

Inherited from:
FragmentsDsl

Attributes

Inherited from:
FragmentsDsl

APPENDING TO ARGUMENTS

APPENDING TO ARGUMENTS

Attributes

Inherited from:
SpecStructureDsl
given given_ToSpecStructure_Arguments_T[T <: SpecificationStructure]: given_ToSpecStructure_Arguments_T[T]

Attributes

Inherited from:
SpecStructureDsl

APPENDING TO A FRAGMENT

APPENDING TO A FRAGMENT

Attributes

Inherited from:
SpecStructureDsl
given given_ToSpecStructure_Fragment_T[T <: SpecificationStructure]: given_ToSpecStructure_Fragment_T[T]

Attributes

Inherited from:
SpecStructureDsl

APPENDING TO FRAGMENTS

APPENDING TO FRAGMENTS

Attributes

Inherited from:
SpecStructureDsl
given given_ToSpecStructure_SpecHeader_T[T <: SpecificationStructure]: given_ToSpecStructure_SpecHeader_T[T]

APPENDING TO A SPEC HEADER

APPENDING TO A SPEC HEADER

Attributes

Inherited from:
SpecStructureDsl

APPENDING TO A SPEC STRUCTURE

APPENDING TO A SPEC STRUCTURE

Attributes

Inherited from:
SpecStructureDsl
given given_ToSpecStructure_SpecStructure_T[T <: SpecificationStructure]: given_ToSpecStructure_SpecStructure_T[T]

Attributes

Inherited from:
SpecStructureDsl

APPENDING TO A STRING

APPENDING TO A STRING

Attributes

Inherited from:
SpecStructureDsl
given given_ToSpecStructure_String_T[T <: SpecificationStructure]: given_ToSpecStructure_String_T[T]

Attributes

Inherited from:
SpecStructureDsl

Extensions

Inherited extensions

extension (alias: String)
infix def ~(s: => SpecificationStructure, tooltip: String): Fragment

Attributes

Inherited from:
ReferenceDsl
infix def ~(s: => SpecificationStructure): Fragment

Attributes

Inherited from:
ReferenceDsl
infix def ~(s: SpecStructure, tooltip: String): Fragment

Attributes

Inherited from:
ReferenceDsl
infix def ~(s: SpecStructure): Fragment

Attributes

Inherited from:
ReferenceDsl
extension (alias: String)
infix def ~/(s: => SpecificationStructure, tooltip: String): Fragment

Attributes

Inherited from:
ReferenceDsl
infix def ~/(s: => SpecificationStructure): Fragment

Attributes

Inherited from:
ReferenceDsl
infix def ~/(s: SpecStructure, tooltip: String): Fragment

Attributes

Inherited from:
ReferenceDsl
infix def ~/(s: SpecStructure): Fragment

Attributes

Inherited from:
ReferenceDsl
extension (d: String)(using not: NotGiven[NoBangExamples])
def !(execution: => Execution): Fragment

Attributes

Inherited from:
ExampleDsl
extension [R](d: String)(using not: NotGiven[NoBangExamples])(using evidence$2: AsResult[R])
def !(r: String => R): Fragment

Attributes

Inherited from:
ExampleDsl
extension [R](d: String)(using not: NotGiven[NoBangExamples])(using evidence$1: AsResult[R])
def !(r: => R): Fragment

Attributes

Inherited from:
ExampleDsl
extension [R](d: String)(using not: NotGiven[NoBangExamples])(using evidence$3: AsResult[R])
def !(r: Env => R): Fragment

Attributes

Inherited from:
ExampleDsl
extension (fragment: Fragment)
def hide: Fragment

Attributes

Inherited from:
FragmentsDsl
extension (fragment: Fragment)
def mute: Fragment

Attributes

Inherited from:
FragmentsDsl
extension (s: String)(using not: NotGiven[NoTitleDsl])

Attributes

Inherited from:
TitleDsl
extension (sc: StringContext)(using factory: FragmentFactory)
inline def s2(inline variables: Interpolated*): Fragments

String interpolation for specs2 fragments

String interpolation for specs2 fragments

Attributes

Inherited from:
S2StringContextCreation
extension [T1, T2](t1: T1)
def ^(t2: => T2)(using tss: ToSpecStructure[T1, T2]): SpecStructure

Attributes

Inherited from:
SpecStructureDsl

Implicits

Inherited implicits

final implicit def appendFragments[T1, T2](t1: T1)(using evidence$1: ToFragments[T1], evidence$2: ToFragments[T2]): appendFragments[T1, T2]

Attributes

Inherited from:
FragmentsDsl
final implicit def appendSpecStructure[T1, T2](t1: T1)(using tss: ToSpecStructure[T1, T2]): appendSpecStructure[T1, T2]

Attributes

Inherited from:
SpecStructureDsl
implicit inline def asExecutionIsInterpolated[R](inline r: => R)(using evidence$1: AsExecution[R], inline factory: FragmentFactory): Interpolated

create an example based on an execution

create an example based on an execution

Attributes

Inherited from:
S2StringContext
implicit inline def asResultIsInterpolated[R](inline r: => R)(using evidence$3: AsResult[R]): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit inline def fragmentIsInterpolated(inline f: => Fragment): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)

Attributes

Inherited from:
SpecStructureDsl
implicit def resultAsSpecStructure[R](r: => R)(using evidence$1: AsResult[R]): SpecStructure

Attributes

Inherited from:
SpecStructureDsl
implicit inline def stepParserIsInterpolatedFragment[R](f: StepParser[R])(using evidence$4: AsResult[R]): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit def stringIsInterpolated(s: => String): Interpolated

Attributes

Inherited from:
S2StringContext
implicit inline def stringResultIsInterpolated[R](inline f: String => R)(using evidence$2: AsResult[R]): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit def toArgProperty[T](t: => T)(using NotGiven[NoArgProperties], CanEqual[T, T]): ArgProperty[T]

Attributes

Inherited from:
ArgProperties