public class TestSuiteRunner extends Object
| Constructor and Description |
|---|
TestSuiteRunner(String name,
Handler<TestContext> before,
Handler<TestContext> after,
Handler<TestContext> beforeEach,
Handler<TestContext> afterEach,
List<TestCaseImpl> tests) |
| Modifier and Type | Method and Description |
|---|---|
Handler<TestSuiteReport> |
getReporter() |
List<TestCaseImpl> |
getTests() |
long |
getTimeout() |
Vertx |
getVertx() |
Boolean |
isUseEventLoop() |
void |
run()
Run the testsuite with the current
timeout, vertx and reporter. |
TestSuiteRunner |
setReporter(Handler<TestSuiteReport> reporter)
Set a reporter for handling the events emitted by the test suite.
|
TestSuiteRunner |
setTimeout(long timeout)
Set a timeout on the runner, zero or a negative value means no timeout.
|
TestSuiteRunner |
setUseEventLoop(Boolean useEventLoop) |
TestSuiteRunner |
setVertx(Vertx vertx)
Set a vertx instance of the runner.
|
public TestSuiteRunner(String name, Handler<TestContext> before, Handler<TestContext> after, Handler<TestContext> beforeEach, Handler<TestContext> afterEach, List<TestCaseImpl> tests)
public List<TestCaseImpl> getTests()
public Boolean isUseEventLoop()
public TestSuiteRunner setUseEventLoop(Boolean useEventLoop)
public Vertx getVertx()
public TestSuiteRunner setVertx(Vertx vertx)
vertx - the vertx instancepublic long getTimeout()
public TestSuiteRunner setTimeout(long timeout)
timeout - the timeout in millispublic Handler<TestSuiteReport> getReporter()
public TestSuiteRunner setReporter(Handler<TestSuiteReport> reporter)
reporter - the reporterpublic void run()
timeout, vertx and reporter.Copyright © 2020. All rights reserved.