Interface TestController
- All Known Implementing Classes:
TestSupport
public interface TestController
-
Method Summary
Modifier and TypeMethodDescriptionThe current test statebooleanbooleanbooleanbooleanvoidPrint the current results and failuresvoidRuns all testsvoidre-runs all tests that are currently in a failed statevoidsetDisplayTestOutput(boolean displayTestOutput) Sets if test output should be displayed in the logsbooleanToggles 'broken only' mode, where only failing tests are runbooleanToggles instrumentation based reload.booleanToggles instrumentation based reload.booleanToggles test output
-
Method Details
-
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
-
toggleLiveReloadEnabled
boolean toggleLiveReloadEnabled()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
-