org.specs2.specification.process

Members list

Type members

Classlikes

trait DefaultExecutor extends Executor

Default execution for specifications:

Default execution for specifications:

  • concurrent by default
  • using steps for synchronisation points

Attributes

Companion
object
Supertypes
trait Executor
class Object
trait Matchable
class Any
Known subtypes
object DefaultExecutor.type

helper functions for executing fragments

helper functions for executing fragments

Attributes

Companion
trait
Supertypes
trait Executor
class Object
trait Matchable
class Any
Self type
trait DefaultSelector extends Selector

Default selection for specification fragments:

Default selection for specification fragments:

  • filter based on the name
  • filter based on the tags
  • filter based on previous execution

Attributes

Companion
object
Supertypes
trait Selector
class Object
trait Matchable
class Any
Known subtypes
object DefaultSelector.type

Attributes

Companion
trait
Supertypes
trait Selector
class Object
trait Matchable
class Any
Self type
trait Executor

Functions for executing fragments.

Functions for executing fragments.

The default execution model executes all examples concurrently and uses steps as "join" points

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DefaultExecutor.type
trait Indentation

Fold function to compute the indentation of each fragment based on the presence of Tabs fragments

Fold function to compute the indentation of each fragment based on the presence of Tabs fragments

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Indentation.type
object Indentation extends Indentation

Attributes

Companion
trait
Supertypes
trait Indentation
class Object
trait Matchable
class Any
Self type
sealed trait IndentationDirection

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object IndentationDown.type
object IndentationNeutral.type
object IndentationUp.type

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case class IndentationState(level: Int, direction: IndentationDirection)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case object IndentationUp extends IndentationDirection

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case class Level(start: Boolean, incrementNext: Boolean, l: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Level

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Level.type
trait Levels

Compute the "level" of each fragment to be able to represent the whole specification as a tree.

Compute the "level" of each fragment to be able to represent the whole specification as a tree.

In mutable specifications text fragments add one level to the following fragments, Otherwise should and can blocks create Start/End fragments indicating that the level should go up then down

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Levels.type
object Levels extends Levels

Attributes

Companion
trait
Supertypes
trait Levels
class Object
trait Matchable
class Any
Self type
Levels.type

This trait adds random execution constraints between examples.

This trait adds random execution constraints between examples.

As a result they will be executed in a random sequence

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Selector

Selection function for Fragment processes

Selection function for Fragment processes

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DefaultSelector.type
case class SpecificationResultKey(specClassName: String, description: Description) extends Key[Result]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Key[Result]
class Object
trait Matchable
class Any
Show all
case class SpecificationStatsKey(specClassName: String) extends Key[Stats]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Key[Stats]
class Object
trait Matchable
class Any
Show all
trait Statistics

Compute the statistics for executed fragments

Compute the statistics for executed fragments

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Statistics.type
object Statistics extends Statistics

Attributes

Companion
trait
Supertypes
trait Statistics
class Object
trait Matchable
class Any
Self type
Statistics.type
case class StatisticsMemoryStore(statistics: HashMap[String, Stats], results: HashMap[(String, Long), Result]) extends Store

In memory store for statistics

In memory store for statistics

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Store
class Object
trait Matchable
class Any
Show all
case class StatisticsRepository(store: Store)

Store the execution statistics.

Store the execution statistics.

The actual store might be on disk on in-memory

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class Stats(specs: Int, examples: Int, successes: Int, expectations: Int, failures: Int, errors: Int, pending: Int, skipped: Int, trend: Option[Stats], timer: SimpleTimer)

The Stats class store results for the number of:

The Stats class store results for the number of:

  • linked specifications
  • examples (including linked examples)
  • successes
  • expectations
  • failures
  • errors
  • pending
  • skipped

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Stats

The Stats class store results for the number of:

The Stats class store results for the number of:

  • successes
  • expectations
  • failures
  • errors
  • pending
  • skipped

for each example

Attributes

Companion
class
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Stats.type
object StoreKeys

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
StoreKeys.type