Interface TestController
-
- All Known Implementing Classes:
TestSupport
public interface TestController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestStatecurrentState()The current test statebooleanisBrokenOnlyMode()booleanisDisplayTestOutput()booleanisInstrumentationEnabled()booleanisLiveReloadEnabled()voidprintFullResults()Print the current results and failuresvoidrunAllTests()Runs all testsvoidrunFailedTests()re-runs all tests that are currently in a failed statevoidsetDisplayTestOutput(boolean displayTestOutput)Sets if test output should be displayed in the logsbooleantoggleBrokenOnlyMode()Toggles 'broken only' mode, where only failing tests are runbooleantoggleInstrumentation()Toggles instrumentation based reload.booleantoggleTestOutput()Toggles test output
-
-
-
Method Detail
-
currentState
TestState currentState()
The current test state
-
runAllTests
void runAllTests()
Runs all tests
-
setDisplayTestOutput
void setDisplayTestOutput(boolean displayTestOutput)
Sets if test output should be displayed in the logs- Parameters:
displayTestOutput-
-
runFailedTests
void runFailedTests()
re-runs all tests that are currently in a failed state
-
toggleBrokenOnlyMode
boolean toggleBrokenOnlyMode()
Toggles 'broken only' mode, where only failing tests are run- Returns:
trueif this change enabled broken only mode
-
toggleTestOutput
boolean toggleTestOutput()
Toggles test output- Returns:
trueif this change to test output mode
-
toggleInstrumentation
boolean toggleInstrumentation()
Toggles instrumentation based reload.- Returns:
trueif this change to do instrumentation based reload
-
printFullResults
void printFullResults()
Print the current results and failures
-
isBrokenOnlyMode
boolean isBrokenOnlyMode()
- Returns:
trueif broken only mode is enabled
-
isDisplayTestOutput
boolean isDisplayTestOutput()
- Returns:
trueif test output is enabled
-
isInstrumentationEnabled
boolean isInstrumentationEnabled()
- Returns:
trueif live reload is enabled
-
isLiveReloadEnabled
boolean isLiveReloadEnabled()
- Returns:
trueif live reload is enabled
-
-