org.specs2.specification.core
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_AsExecution_Execution.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
AsExecution.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AsExecution.type
The next fragment must be un-indented
The next fragment must be un-indented
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
Break (== new line)
Break (== new line)
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
- Self type
-
Br.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
Description of a Fragment
Creation methods for Descriptions
Creation methods for Descriptions
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Description.type
End of a block
End of a block
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
- Self type
-
End.type
Whole creation / execution / reporting environment for a specification
Whole creation / execution / reporting environment for a specification
Part of it is driven by the command-line, part of it is specs2 implementation Yet it can be used to drive the creation or execution of examples
Note: creating an Env instance is a delicate activity because the Env hold a thread pool that needs to be shutdown at the end of the execution
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
EnvDefault.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Execution of a Fragment
Execution of a Fragment
- there can be none (for a piece of text)
- the execution depends on the current Env. by default executions are created synchronously but can also be fork-off with Execution.withEnvAsync
- it can have its own timeout (default is infinite)
- once executed the result is kept
- if mustJoin is true this means that all previous executions must be finished before this one can start
- it has a condition deciding if the next execution can proceed or not depending on the current result
- the result of a similar execution can be stored to decide if this one needs to be executed or not
- it can store a continuation that will create more fragments, possibly containing more executions, based on the current result
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Executingclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FatalExecution.type
Fragment of a specification
Fragment of a specification
It has a description (generally text but sometimes not, for a step for example) It has an execution which might do or don't do anything (for examples it runs some code)
By default its location is provided by a stacktrace containing the user file with line number which triggered this fragment creation. The location is however provided by a macro in the case of s2 interpolated strings
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Fragments of a specification
Fragments of a specification
It is implemented as an async Producer[Fragment] in order to produce fragments dynamically if necessary
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Function creating more fragments (to be added to the specification) based on the current result
Function creating more fragments (to be added to the specification) based on the current result
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Structure of an immutable specification.
Structure of an immutable specification.
It may depend on the current environment.
Attributes
- Supertypes
- Known subtypes
-
trait SpecLikeclass Spectrait SpecLikeclass Spectrait SpecificationLiketrait SpecificationLiketrait SpecificationLikeclass Specificationclass Specificationclass SpecificationShow all
Location of a Fragment
Location of a Fragment
This is currently implemented using stacktraces which is very brittle
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class PositionLocationclass StacktraceLocation
Description of a Tag fragment
Description of a Tag fragment
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
NoText description, used when creating steps and actions which are not described
NoText description, used when creating steps and actions which are not described
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
- Self type
-
NoText.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Executingclass Objecttrait Matchableclass AnyShow all
- Self type
-
NotExecuting.type
This trait copies the inherited env: Env for a Specification and makes sure it is shutdown when the specification finishes
This trait copies the inherited env: Env for a Specification and makes sure it is shutdown when the specification finishes
The specification using this trait must require an Env:
class MySpec(env: Env) extends Specification with OwnEnv
Attributes
- Supertypes
-
trait AfterSpectrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
- Self type
This trait provides an isolated Execution Env for a Specification and makes sure it is shutdown when the specification finishes.
This trait provides an isolated Execution Env for a Specification and makes sure it is shutdown when the specification finishes.
The specification using this trait must require an Env:
class MySpec(env: Env) extends Specification with OwnExecutionEnv
Attributes
- Supertypes
-
trait AfterSpectrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PositionLocation.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Header of a Specification
Header of a Specification
It can hold a user-defined title for better presentation
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SpecHeader.type
Structure of a Specification:
Structure of a Specification:
- a header
- some arguments
- specification fragments
Note that the fragments have to be lazy in order to avoid cycles when 2 specifications are referencing each other with links
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Create SpecStructures from header, arguments, fragments
Create SpecStructures from header, arguments, fragments
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SpecStructure.type
Reference to another specification
Reference to another specification
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SpecificationRef.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait SpecLikeclass Spectrait SpecLikeclass Spectrait SpecificationLiketrait SpecificationLiketrait SpecificationLikeclass Specificationclass Specificationclass Specificationtrait AfterAlltrait AfterEachtrait AfterSpectrait OwnEnvtrait OwnExecutionEnvtrait AllExpectationstrait AroundEachtrait NoStdOutAroundEachtrait Retriestrait BeforeAfterAlltrait BeforeAfterEachtrait BeforeAfterSpectrait Resource[T]trait BeforeAlltrait BeforeEachtrait BeforeSpecShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Locationclass Objecttrait Matchableclass AnyShow all
Start of a block. This is used to delimit the blocks in mutable specifications and know exactly how to create levels when transforming a specification to a tree of examples (for JUnit for example)
Start of a block. This is used to delimit the blocks in mutable specifications and know exactly how to create levels when transforming a specification to a tree of examples (for JUnit for example)
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
- Self type
-
Start.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Executingclass Objecttrait Matchableclass AnyShow all
The next fragment must be indented
The next fragment must be indented
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all
Text description
Text description
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Descriptionclass Objecttrait Matchableclass AnyShow all