trait Distributor extends AnyRef
Trait whose instances facilitate parallel execution of Suite
s.
An optional Distributor
is passed to the run
method of Suite
. If a
Distributor
is indeed passed, trait Suite
's implementation of run
will
populate that Distributor
with its nested Suite
s (by passing them to the Distributor
's
apply
method) rather than executing the nested Suite
s directly. It is then up to another thread or process
to execute those Suite
s.
If you have a set of nested Suite
s that must be executed sequentially, you can mix in trait
SequentialNestedSuiteExecution
, which overrides runNestedSuites
and
calls super
's runNestedSuites
implementation, passing in None
for the
Distributor
.
Implementations of this trait must be thread safe.
- Source
- Distributor.scala
- Alphabetic
- By Inheritance
- Distributor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply(suite: Suite, args: Args): Status
Puts a
Suite
into theDistributor
.Puts a
Suite
into theDistributor
.The
Distributor
can decide which, if any, of the passedArgs
Suite's apply method. For example, aDistributor
may pass itself wrapped in aSome
in theArgs
it passes to theSuite
'srun
method instead of theargs.distributor
value.- suite
the
Suite
to put into theDistributor
.- args
a
Args
containing objects that may be passed to theSuite
'srun
method via aArgs
instance.
- Exceptions thrown
NullArgumentException
if eithersuite
ortracker
isnull
.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()