ZMasterTestRunner
Attributes
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Ported from Scala.js Scala Native specific: Deserialize a task that has been serialized by serializeTask
of another or this Runner
.
Ported from Scala.js Scala Native specific: Deserialize a task that has been serialized by serializeTask
of another or this Runner
.
The resulting task must associate with this runner.
Attributes
- Definition Classes
- Inherited from:
- ZTestRunnerNative
Indicates the client is done with this Runner
instance.
Indicates the client is done with this Runner
instance.
After invoking the done
method on a Runner
instance, the client should no longer invoke the task
methods on that instance. (If the client does invoke task
after done
, it will be rewarded with an IllegalStateException
.)
Similarly, after returning from done
, the test framework should no longer write any messages to the Logger
, nor fire any more events to the EventHandler
, passed to Framework.runner
. If the test framework has not completed writing log messages or firing events when the client invokes done
, the framework should not return from done
until it is finished sending messages and events, and may block the thread that invoked done
until it is actually done.
In short, by invoking done
, the client indicates it is done invoking the task
methods for this run. By returning from done
, the test framework indicates it is done writing log messages and firing events for this run.
If the client invokes done
more than once on the same Runner
instance, the test framework should on subsequent invocations should throw IllegalStateException
.
The test framework may send a summary (i.e., a message giving total tests succeeded, failed, and so on) to the user via a log message. If so, it should return the summary from done
. If not, it should return an empty string. The client may use the return value of done
to decide whether to display its own summary message.
The test framework may return a multi-lines string (i.e., a message giving total tests succeeded, failed and so on) to the client.
Attributes
- Returns
-
a possibly multi-line summary string, or the empty string if no summary is provided
- Inherited from:
- ZTestRunnerNative
Ported from Scala.js Scala Native specific: Invoked on the controller Runner
, if a worker sends a message (through the channel provided by the client).
Ported from Scala.js Scala Native specific: Invoked on the controller Runner
, if a worker sends a message (through the channel provided by the client).
The controller may send a message back to the sending worker by returning the message in a Some.
Invoked on a worker Runner
, if the controller responds to a message (sent by the worker via the supplied closure in slaveRunner
). The return value of the call is ignored in this case.
Attributes
- Definition Classes
- Inherited from:
- ZTestRunnerNative
Ported from Scala.js Scala Native specific: Serialize a task created by tasks
or returned from execute
.
Ported from Scala.js Scala Native specific: Serialize a task created by tasks
or returned from execute
.
The resulting string will be passed to the deserializeTask
method of another runner. After calling this method, the passed task is invalid and should dissociate from this runner.
Attributes
- Definition Classes
- Inherited from:
- ZTestRunnerNative
Returns an array of tasks that when executed will run tests and suites determined by the passed TaskDef
s.
Returns an array of tasks that when executed will run tests and suites determined by the passed TaskDef
s.
Each returned task, when executed, will run tests and suites determined by the test class name, fingerprints, "explicitly specified" field, and selectors of one of the passed TaskDef
s.
This tasks
method may be called with TaskDef
s containing the same value for testClassName
but different fingerprints. For example, if both a class and its companion object were test classes, the tasks
method could be passed an array containing TaskDef
s with the same name but with a different value for fingerprint.isModule
.
A test framework may "reject" a requested task by returning no Task
for that TaskDef
.
Value parameters
- taskDefs
-
the
TaskDef
s for requested tasks
Attributes
- Returns
-
an array of
Task
s - Throws
-
java.lang.IllegalStateException
if invoked after
done
has been invoked. - Inherited from:
- ZTestRunnerNative
Concrete fields
Inherited fields
Attributes
- Inherited from:
- ZTestRunnerNative