Class TestSupport
java.lang.Object
io.quarkus.deployment.dev.testing.TestSupport
- All Implemented Interfaces:
TestController
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) String(package private) TestType(package private) boolean(package private) final List<CompilationProvider> (package private) QuarkusCompiler(package private) final DevModeContext(package private) final io.quarkus.bootstrap.app.CuratedApplication(package private) final io.quarkus.dev.spi.DevModeType(package private) boolean(package private) Pattern(package private) Boolean(package private) Pattern(package private) final List<ModuleTestRunner> (package private) String(package private) boolean(package private) final List<TestListener> (package private) TestRunResults(package private) TestType -
Constructor Summary
ConstructorsConstructorDescriptionTestSupport(io.quarkus.bootstrap.app.CuratedApplication curatedApplication, List<CompilationProvider> compilationProviders, DevModeContext context, io.quarkus.dev.spi.DevModeType devModeType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TestListener listener) voidclose()The current test statelongreturns the current status of the test runner.voidinit()static Optional<TestSupport> instance()booleanbooleanbooleanbooleanbooleanbooleanvoidPrint the current results and failuresvoidRuns all testsvoidre-runs all tests that are currently in a failed state(package private) voidrunInternal(ClassScanResult classScanResult, boolean reRunFailures) voidrunTests()voidrunTests(ClassScanResult classScanResult) voidsetConfig(TestConfig config) setConfiguredDisplayTestOutput(boolean displayTestOutput) voidsetDisplayTestOutput(boolean displayTestOutput) Sets if test output should be displayed in the logsvoidsetEngines(List<String> includeEngines, List<String> excludeEngines) voidsetPatterns(String include, String exclude) voidsetSpecificSelection(String specificSelection) voidsetTestType(TestType testType) voidstart()voidstop()voidvoidbooleanToggles 'broken only' mode, where only failing tests are runbooleanToggles instrumentation based reload.booleanToggles instrumentation based reload.booleanToggles test output
-
Field Details
-
curatedApplication
final io.quarkus.bootstrap.app.CuratedApplication curatedApplication -
compilationProviders
-
context
-
moduleRunners
-
testListeners
-
devModeType
final io.quarkus.dev.spi.DevModeType devModeType -
compiler
-
started
volatile boolean started -
testRunResults
-
includeTags
-
excludeTags
-
include
-
exclude
-
specificSelection
-
includeEngines
-
excludeEngines
-
displayTestOutput
volatile boolean displayTestOutput -
explicitDisplayTestOutput
-
brokenOnlyMode
volatile boolean brokenOnlyMode -
testType
-
appPropertiesIncludeTags
-
appPropertiesExcludeTags
-
appPropertiesIncludePattern
String appPropertiesIncludePattern -
appPropertiesExcludePattern
String appPropertiesExcludePattern -
appPropertiesIncludeEngines
-
appPropertiesExcludeEngines
-
appPropertiesTestType
TestType appPropertiesTestType
-
-
Constructor Details
-
TestSupport
public TestSupport(io.quarkus.bootstrap.app.CuratedApplication curatedApplication, List<CompilationProvider> compilationProviders, DevModeContext context, io.quarkus.dev.spi.DevModeType devModeType)
-
-
Method Details
-
instance
-
isRunning
public boolean isRunning() -
getTestListeners
-
getStatus
returns the current status of the test runner.This is expressed in terms of test run ids, where -1 signifies no result.
-
start
public void start() -
init
public void init() -
close
public void close() -
stop
public void stop() -
runTests
public void runTests() -
runFailedTests
public void runFailedTests()Description copied from interface:TestControllerre-runs all tests that are currently in a failed state- Specified by:
runFailedTestsin interfaceTestController
-
runTests
-
runInternal
-
addListener
-
isStarted
public boolean isStarted() -
getCompiler
-
getTestRunResults
-
getResults
-
getRunningTestRunId
public long getRunningTestRunId() -
setTags
-
setPatterns
-
setSpecificSelection
-
setEngines
-
setConfiguredDisplayTestOutput
-
setTestType
-
currentState
Description copied from interface:TestControllerThe current test state- Specified by:
currentStatein interfaceTestController
-
runAllTests
public void runAllTests()Description copied from interface:TestControllerRuns all tests- Specified by:
runAllTestsin interfaceTestController
-
setDisplayTestOutput
public void setDisplayTestOutput(boolean displayTestOutput) Description copied from interface:TestControllerSets if test output should be displayed in the logs- Specified by:
setDisplayTestOutputin interfaceTestController- Parameters:
displayTestOutput-
-
toggleBrokenOnlyMode
public boolean toggleBrokenOnlyMode()Description copied from interface:TestControllerToggles 'broken only' mode, where only failing tests are run- Specified by:
toggleBrokenOnlyModein interfaceTestController- Returns:
trueif this change enabled broken only mode
-
toggleTestOutput
public boolean toggleTestOutput()Description copied from interface:TestControllerToggles test output- Specified by:
toggleTestOutputin interfaceTestController- Returns:
trueif this change to test output mode
-
toggleInstrumentation
public boolean toggleInstrumentation()Description copied from interface:TestControllerToggles instrumentation based reload.- Specified by:
toggleInstrumentationin interfaceTestController- Returns:
trueif this change to do instrumentation based reload
-
toggleLiveReloadEnabled
public boolean toggleLiveReloadEnabled()Description copied from interface:TestControllerToggles instrumentation based reload.- Specified by:
toggleLiveReloadEnabledin interfaceTestController- Returns:
trueif this change to do instrumentation based reload
-
printFullResults
public void printFullResults()Description copied from interface:TestControllerPrint the current results and failures- Specified by:
printFullResultsin interfaceTestController
-
isBrokenOnlyMode
public boolean isBrokenOnlyMode()- Specified by:
isBrokenOnlyModein interfaceTestController- Returns:
trueif broken only mode is enabled
-
isDisplayTestOutput
public boolean isDisplayTestOutput()- Specified by:
isDisplayTestOutputin interfaceTestController- Returns:
trueif test output is enabled
-
isInstrumentationEnabled
public boolean isInstrumentationEnabled()- Specified by:
isInstrumentationEnabledin interfaceTestController- Returns:
trueif live reload is enabled
-
isLiveReloadEnabled
public boolean isLiveReloadEnabled()- Specified by:
isLiveReloadEnabledin interfaceTestController- Returns:
trueif live reload is enabled
-
testCompileFailed
-
testCompileSucceeded
public void testCompileSucceeded() -
setConfig
-
getConfig
-