@NotThreadSafe public abstract class Driver extends Object
Driver
implementation so that the Jumi test runner will know
how to run tests written using that testing framework.Constructor and Description |
---|
Driver() |
Modifier and Type | Method and Description |
---|---|
abstract void |
findTests(Class<?> testClass,
SuiteNotifier notifier,
Executor executor)
Starts the execution of the tests in
testClass . |
public abstract void findTests(Class<?> testClass, SuiteNotifier notifier, Executor executor)
testClass
.
The provided Executor
should be used to run the tests, so that they can be executed in parallel, each
test in a different thread.[1] If the Runnable
s passed to executor
are Serializable
, then each of the tests in one class could potentially be executed on different machine in a server
cluster.[citation needed] Otherwise any potential clustering is at class-granularity[citation
needed] (which may be a hindrance for classes with many slow tests).testClass
- contains the tests to be executed.notifier
- through which Jumi is told about test executions.executor
- recommended for executing tests asynchronously, instead of running them synchronously in this
method.Copyright © 2011-2013. All Rights Reserved.