Puts a Suite into the Distributor.
Puts a Suite into the Distributor.
The Distributor can decide which, if any, of the passed ArgsSuite's apply method. For example, a Distributor
may pass itself wrapped in a Some in the Args it passes to the Suite's run
method instead of the args.distributor value.
the Suite to put into the Distributor.
a Args containing objects that may be passed to the Suite's
run method via a Args instance.
if either suite or tracker is null.
Puts a Suite into the Distributor.
Puts a Suite into the Distributor.
the Suite to put into the Distributor.
a Tracker to pass to the Suite's run method.
Please use the apply method that takes a Args instead, the one with this signature: def apply(Suite, Args)
if either suite or tracker is null.
Trait whose instances facilitate parallel execution of
Suites. An optionalDistributoris passed to therunmethod ofSuite. If aDistributoris indeed passed, traitSuite's implementation ofrunwill populate thatDistributorwith its nestedSuites (by passing them to theDistributor'sapplymethod) rather than executing the nestedSuites directly. It is then up to another thread or process to execute thoseSuites.If you have a set of nested
Suites that must be executed sequentially, you can mix in traitSequentialNestedSuiteExecution, which overridesrunNestedSuitesand callssuper'srunNestedSuitesimplementation, passing inNonefor theDistributor.Implementations of this trait must be thread safe.