trait Distributor extends AnyRef
Trait whose instances facilitate parallel execution of Suites.
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 Suites (by passing them to the Distributor's
apply method) rather than executing the nested Suites directly. It is then up to another thread or process
to execute those Suites.
If you have a set of nested Suites 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
Suiteinto theDistributor.Puts a
Suiteinto theDistributor.The
Distributorcan decide which, if any, of the passedArgsSuite's apply method. For example, aDistributormay pass itself wrapped in aSomein theArgsit passes to theSuite'srunmethod instead of theargs.distributorvalue.- suite
the
Suiteto put into theDistributor.- args
a
Argscontaining objects that may be passed to theSuite'srunmethod via aArgsinstance.
- Exceptions thrown
NullArgumentExceptionif eithersuiteortrackerisnull.
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()