Class ExecuteTestsCommand
java.lang.Object
org.junit.platform.console.command.BaseCommand<TestExecutionSummary>
org.junit.platform.console.command.ExecuteTestsCommand
- All Implemented Interfaces:
Callable<TestExecutionSummary>, picocli.CommandLine.IExitCodeGenerator
class ExecuteTestsCommand
extends BaseCommand<TestExecutionSummary>
implements picocli.CommandLine.IExitCodeGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConsoleTestExecutor.Factory(package private) TestDiscoveryOptionsMixinprivate static final intExit code indicating no tests found(package private) ExecuteTestsCommand.ReportingOptionsprivate static final intExit code indicating test failure(s)(package private) TestConsoleOutputOptionsMixinFields inherited from class BaseCommand
ansiColorOption, bannerOption, commandSpec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestExecutionSummaryexecute(PrintWriter out) int(package private) TestConsoleOutputOptions(package private) TestDiscoveryOptionsMethods inherited from class BaseCommand
call, execute, getColorScheme, initialize, parseArgs
-
Field Details
-
TEST_FAILED
private static final int TEST_FAILEDExit code indicating test failure(s)- See Also:
-
NO_TESTS_FOUND
private static final int NO_TESTS_FOUNDExit code indicating no tests found- See Also:
-
consoleTestExecutorFactory
-
discoveryOptions
TestDiscoveryOptionsMixin discoveryOptions -
testOutputOptions
TestConsoleOutputOptionsMixin testOutputOptions -
reportingOptions
ExecuteTestsCommand.ReportingOptions reportingOptions
-
-
Constructor Details
-
ExecuteTestsCommand
ExecuteTestsCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)
-
-
Method Details
-
execute
- Specified by:
executein classBaseCommand<TestExecutionSummary>
-
getReportsDir
-
getReportingOptions
-
toTestDiscoveryOptions
TestDiscoveryOptions toTestDiscoveryOptions() -
toTestConsoleOutputOptions
TestConsoleOutputOptions toTestConsoleOutputOptions() -
getExitCode
public int getExitCode()- Specified by:
getExitCodein interfacepicocli.CommandLine.IExitCodeGenerator
-