public interface TestRunner
Modifier and Type | Interface and Description |
---|---|
static class |
TestRunner.Status |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason)
Cancels an ongoing test run with the specified reason
|
void |
fail(String reason)
Fails an ongoing test run with the specified reason
|
String |
getReason()
Gets the reason why a running test was canceled or failed.
|
TestRunContext |
getRunContext() |
long |
getStartTime()
Returns the time this runner was last started
|
TestRunner.Status |
getStatus()
Gets the current status of this TestRunner
|
TestRunnable |
getTestRunnable() |
long |
getTimeTaken()
Returns the time taken by this runner since its last start
|
boolean |
isRunning() |
void |
start(boolean async)
Starts running this TestRunners TestCase.
|
TestRunner.Status |
waitUntilFinished()
Blocks until this runner is finished, (returns directly if it already has
finished)
|
TestRunner.Status getStatus()
void start(boolean async)
async
- flag controlling if TestCase should be run in seperate or
callers thread.long getTimeTaken()
long getStartTime()
TestRunner.Status waitUntilFinished()
void cancel(String reason)
void fail(String reason)
String getReason()
TestRunContext getRunContext()
TestRunnable getTestRunnable()
boolean isRunning()
Copyright © 2019. All Rights Reserved.