Class ExecuteTestsCommand
- java.lang.Object
-
- org.junit.platform.console.command.BaseCommand<TestExecutionSummary>
-
- org.junit.platform.console.command.ExecuteTestsCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<TestExecutionSummary>,picocli.CommandLine.IExitCodeGenerator
class ExecuteTestsCommand extends BaseCommand<TestExecutionSummary> implements picocli.CommandLine.IExitCodeGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classExecuteTestsCommand.ReportingOptions
-
Field Summary
Fields Modifier and Type Field Description private ConsoleTestExecutor.FactoryconsoleTestExecutorFactory(package private) TestDiscoveryOptionsMixindiscoveryOptionsprivate static intNO_TESTS_FOUNDExit code indicating no tests found(package private) ExecuteTestsCommand.ReportingOptionsreportingOptionsprivate static intTEST_FAILEDExit code indicating test failure(s)(package private) TestConsoleOutputOptionsMixintestOutputOptions-
Fields inherited from class org.junit.platform.console.command.BaseCommand
ansiColorOption, bannerOption, commandSpec
-
-
Constructor Summary
Constructors Constructor Description ExecuteTestsCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestExecutionSummaryexecute(java.io.PrintWriter out)intgetExitCode()private java.util.Optional<ExecuteTestsCommand.ReportingOptions>getReportingOptions()(package private) java.util.Optional<java.nio.file.Path>getReportsDir()(package private) TestConsoleOutputOptionstoTestConsoleOutputOptions()(package private) TestDiscoveryOptionstoTestDiscoveryOptions()-
Methods inherited from class org.junit.platform.console.command.BaseCommand
call, execute, getColorScheme, initialize, parseArgs
-
-
-
-
Field Detail
-
TEST_FAILED
private static final int TEST_FAILED
Exit code indicating test failure(s)- See Also:
- Constant Field Values
-
NO_TESTS_FOUND
private static final int NO_TESTS_FOUND
Exit code indicating no tests found- See Also:
- Constant Field Values
-
consoleTestExecutorFactory
private final ConsoleTestExecutor.Factory consoleTestExecutorFactory
-
discoveryOptions
TestDiscoveryOptionsMixin discoveryOptions
-
testOutputOptions
TestConsoleOutputOptionsMixin testOutputOptions
-
reportingOptions
ExecuteTestsCommand.ReportingOptions reportingOptions
-
-
Constructor Detail
-
ExecuteTestsCommand
ExecuteTestsCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)
-
-
Method Detail
-
execute
protected TestExecutionSummary execute(java.io.PrintWriter out)
- Specified by:
executein classBaseCommand<TestExecutionSummary>
-
getReportsDir
java.util.Optional<java.nio.file.Path> getReportsDir()
-
getReportingOptions
private java.util.Optional<ExecuteTestsCommand.ReportingOptions> getReportingOptions()
-
toTestDiscoveryOptions
TestDiscoveryOptions toTestDiscoveryOptions()
-
toTestConsoleOutputOptions
TestConsoleOutputOptions toTestConsoleOutputOptions()
-
getExitCode
public int getExitCode()
- Specified by:
getExitCodein interfacepicocli.CommandLine.IExitCodeGenerator
-
-