DefaultExecutor

helper functions for executing fragments

Companion:
class
trait Executor
class Object
trait Matchable
class Any

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

synchronous execution with a specific environment

synchronous execution with a specific environment

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

only to be used in tests

only to be used in tests

def runSpec(spec: SpecStructure, env: Env): List[Fragment]

Inherited methods

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
Inherited from:
DefaultExecutor
def executeExecution(env: Env, timeout: Option[FiniteDuration])(execution: Execution): Execution

execute one Execution

execute one Execution

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

execute one fragment

execute one fragment

Inherited from:
DefaultExecutor
def executeOnline(env: Env)(fragment: Fragment): AsyncStream[Fragment]
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

Inherited from:
DefaultExecutor