org.specs2.specification.process

Type members

Classlikes

case class DefaultExecutor(env: Env) extends Executor

Default execution for specifications:

Default execution for specifications:

  • concurrent by default
  • using steps for synchronisation points
Companion
object

helper functions for executing fragments

helper functions for executing fragments

Companion
class
case class DefaultSelector(commandLineArguments: Arguments) 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
case class DefaultStatistics(arguments: Arguments, statisticsRepository: StatisticsRepository) extends Statistics
case class DefaultStatisticsRepository(store: Store) extends StatisticsRepository
trait Executor

Functions for executing fragments.

Functions for executing fragments.

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

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

Companion
object
object Indentation extends Indentation
Companion
class
case class IndentationState(level: Int, direction: IndentationDirection)
Companion
object
Companion
class
case class Level(start: Boolean, incrementNext: Boolean, l: Int)
Companion
object
object Level
Companion
class
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

Companion
object
object Levels extends Levels
Companion
class
case class RandomSequentialExecutor(env: Env) extends Executor

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

trait Selector

Selection function for Fragment processes

Selection function for Fragment processes

Companion
object
object Selector
Companion
class
case class SpecificationResultKey(specClassName: String, description: Description) extends Key[Result]
case class SpecificationStatsKey(specClassName: String) extends Key[Stats]
trait Statistics

Compute the statistics for executed fragments

Compute the statistics for executed fragments

Companion
object
object Statistics
Companion
class
case class StatisticsMemoryStore(statistics: HashMap[String, Stats], results: HashMap[(String, Long), Result]) extends Store

In memory store for statistics

In memory store for statistics

Store the execution statistics.

Store the execution statistics.

The actual store might be on disk on in-memory

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

Companion
class
case class SteppedExecutor(env: Env) extends Executor

Concurrent execution of fragments in between steps

Concurrent execution of fragments in between steps

object StoreKeys