SpecificationCreation

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

Attributes

Graph
Supertypes
trait ArgumentsShortcuts
trait ArgumentsArgs
trait ArgProperties
trait ArgumentsCreation
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

class BangExample(d: String)

Attributes

Inherited from:
ExampleDsl
Supertypes
class Object
trait Matchable
class Any
Known subtypes
implicit class HiddenFragment(fragment: Fragment)

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
implicit class MutedFragment(fragment: Fragment)

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
class TitleOps(s: String)

Attributes

Inherited from:
TitleDsl
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any
implicit class appendSpecStructureToFragments(fs: => Fragments)

Attributes

Inherited from:
SpecStructureDslLowImplicits (hidden)
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
implicit class appendSpecStructureToString(s: String)

Attributes

Inherited from:
SpecStructureDsl
Supertypes
class Object
trait Matchable
class Any
implicit class appendToArguments(args: Arguments)

Attributes

Inherited from:
SpecStructureDsl1 (hidden)
Supertypes
class Object
trait Matchable
class Any
implicit class appendToFragment(f: Fragment)

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
implicit class appendToFragments(fs: Fragments)

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
implicit class appendToString(s: String)

Attributes

Inherited from:
FragmentsDsl
Supertypes
class Object
trait Matchable
class Any
implicit class linkFragment(alias: String)

Attributes

Inherited from:
ReferenceDsl
Supertypes
class Object
trait Matchable
class Any
Known subtypes
implicit class seeFragment(alias: String)

Attributes

Inherited from:
ReferenceDsl
Supertypes
class Object
trait Matchable
class Any
Known subtypes
implicit class specificationInStringContext(sc: StringContext)

Attributes

Inherited from:
S2StringContextCreation
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def action(a: => Any): Fragment

Attributes

Inherited from:
ActionDsl
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

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
def end: Fragment

Attributes

Inherited from:
FormattingFragments
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 isolated: Arguments

Attributes

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

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

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 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(a: => Any, global: Boolean): Fragment

Attributes

Inherited from:
ActionDsl
def step(a: => Any): 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 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

Implicits

Inherited implicits

final implicit def HiddenFragment(fragment: Fragment): HiddenFragment

Attributes

Inherited from:
FragmentsDsl
final implicit def MutedFragment(fragment: Fragment): MutedFragment

Attributes

Inherited from:
FragmentsDsl
implicit def anyAsResultIsInterpolatedFragment(r: => Function0Result): InterpolatedFragment

Attributes

Inherited from:
S2StringContext
implicit def anyToArgProperty[T](t: => T): ArgProperty[T]

Attributes

Inherited from:
ArgProperties

Attributes

Inherited from:
SpecStructureDsl

Attributes

Inherited from:
SpecStructureDslLowImplicits (hidden)

Attributes

Inherited from:
SpecStructureDsl

Attributes

Inherited from:
SpecStructureDsl
final implicit def appendToArguments(args: Arguments): appendToArguments

Attributes

Inherited from:
SpecStructureDsl1 (hidden)
final implicit def appendToFragment(f: Fragment): appendToFragment

Attributes

Inherited from:
FragmentsDsl
final implicit def appendToFragments(fs: Fragments): appendToFragments

Attributes

Inherited from:
FragmentsDsl
final implicit def appendToString(s: String): appendToString

Attributes

Inherited from:
FragmentsDsl

Attributes

Inherited from:
S2StringContext
implicit def asResultIsInterpolatedFragment[R : AsResult](r: => R): InterpolatedFragment

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit def bangExample(d: String): BangExample

Attributes

Inherited from:
ExampleDsl

Attributes

Inherited from:
S2StringContext

Attributes

Inherited from:
S2StringContext

Attributes

Inherited from:
SpecStructureDsl

Attributes

Inherited from:
S2StringContext1 (hidden)

Attributes

Inherited from:
FragmentsDsl

Attributes

Inherited from:
SpecStructureDsl1 (hidden)

Attributes

Inherited from:
S2StringContext
final implicit def linkFragment(alias: String): linkFragment

Attributes

Inherited from:
ReferenceDsl
implicit def resultAsSpecStructure[R : AsResult](r: => R): SpecStructure

Attributes

Inherited from:
SpecStructureDslLowImplicits (hidden)
final implicit def seeFragment(alias: String): seeFragment

Attributes

Inherited from:
ReferenceDsl

Attributes

Inherited from:
SpecStructureDsl

Attributes

Inherited from:
SpecStructureDsl
final implicit def specificationInStringContext(sc: StringContext): specificationInStringContext

Attributes

Inherited from:
S2StringContextCreation

Attributes

Inherited from:
S2StringContext
implicit def stringAsSpecStructure(s: String): SpecStructure

Attributes

Inherited from:
SpecStructureDsl
implicit def stringFunctionIsInterpolatedFragment[R : AsResult](f: String => R): InterpolatedFragment

Attributes

Inherited from:
S2StringContext

Attributes

Inherited from:
S2StringContext
implicit def title(s: String): TitleOps

Attributes

Inherited from:
TitleDsl