DefaultExecutor

org.specs2.specification.process.DefaultExecutor
See theDefaultExecutor companion trait

helper functions for executing fragments

Attributes

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

Members list

Value members

Concrete methods

def execute(f: Fragment)(env: Env): Fragment
def executeAll(seq: Fragment*)(env: Env): List[Fragment]
def executeFragments(fs: Fragments)(env: Env): List[Fragment]

only to be used in tests

only to be used in tests

Attributes

synchronous execution with a specific environment

synchronous execution with a specific environment

Attributes

def executeSeq(seq: Seq[Fragment])(env: Env): List[Fragment]

only to be used in tests

only to be used in tests

Attributes

def runSpec(spec: SpecStructure, env: Env): List[Fragment]
def runSpecificationAction(spec: SpecificationStructure, env: Env): Action[List[Fragment]]
def runSpecificationFuture(spec: SpecificationStructure, env: Env): Future[List[Fragment]]

Inherited methods

def execute(env: Env): Fragment => Fragment

execute fragments:

execute fragments:

  • filter the ones that the user wants to keep
  • sequence the execution so that only parts in between steps are executed concurrently

Attributes

Inherited from:
DefaultExecutor
def executeExecution(env: Env, timeout: Option[FiniteDuration])(execution: Execution): Execution

execute one Execution

execute one Execution

Attributes

Inherited from:
DefaultExecutor
def executeFragment(env: Env, timeout: Option[FiniteDuration])(fragment: Fragment): Fragment

execute one fragment

execute one fragment

Attributes

Inherited from:
DefaultExecutor
def executeOnline(env: Env)(fragment: Fragment): AsyncStream[Fragment]

Attributes

Inherited from:
DefaultExecutor

execute fragments, making sure that:

execute fragments, making sure that:

  • "join" points are respected, i.e. when a Fragment is a join we must make sure that all previously executing fragments have finished their execution

  • the fragments execute sequentially when args.sequential

  • the execution stops if one fragment indicates that the result of the previous executions is not correct

Attributes

Inherited from:
DefaultExecutor