Class ExecuteTestsCommand
- java.lang.Object
-
- org.junit.platform.console.options.BaseCommand<TestExecutionSummary>
-
- org.junit.platform.console.options.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 class
ExecuteTestsCommand.ReportingOptions
-
Field Summary
Fields Modifier and Type Field Description private ConsoleTestExecutor.Factory
consoleTestExecutorFactory
(package private) TestDiscoveryOptionsMixin
discoveryOptions
private static int
NO_TESTS_FOUND
Exit code indicating no tests found(package private) ExecuteTestsCommand.ReportingOptions
reportingOptions
private static int
TEST_FAILED
Exit code indicating test failure(s)(package private) TestConsoleOutputOptionsMixin
testOutputOptions
-
Fields inherited from class org.junit.platform.console.options.BaseCommand
commandSpec, outputOptions
-
-
Constructor Summary
Constructors Constructor Description ExecuteTestsCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestExecutionSummary
execute(java.io.PrintWriter out)
int
getExitCode()
private java.util.Optional<ExecuteTestsCommand.ReportingOptions>
getReportingOptions()
(package private) java.util.Optional<java.nio.file.Path>
getReportsDir()
(package private) TestConsoleOutputOptions
toTestConsoleOutputOptions()
(package private) TestDiscoveryOptions
toTestDiscoveryOptions()
-
Methods inherited from class org.junit.platform.console.options.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:
execute
in 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:
getExitCode
in interfacepicocli.CommandLine.IExitCodeGenerator
-
-