Top Inners Fields Constructors Methods
org.junit.platform.console.command

pack-priv Class ExecuteTestsCommand

extends BaseCommand<TestExecutionSummary>
implements IExitCodeGenerator
Class Inheritance
All Implemented Interfaces
picocli.CommandLine.IExitCodeGenerator
Annotations
@Command
name:execute
description:Execute tests
Static Imports
org.junit.platform.console.command.ExitCode.NO_TESTS_FOUND, .ExitCode.SUCCESS, .ExitCode.TEST_FAILED

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final ConsoleTestExecutor.Factory
pack-priv TestDiscoveryOptionsMixin
pack-priv ExecuteTestsCommand.ReportingOptions
pack-priv TestConsoleOutputOptionsMixin
Inherited from org.junit.platform.console.command.BaseCommand:
ansiColorOptioncommandSpec

Constructor Summary

AccessConstructor and Description
pack-priv
ExecuteTestsCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)

Method Summary

Modifier and TypeMethod and Description
protected TestExecutionSummary
public int
getExitCode()

Implements picocli.CommandLine.IExitCodeGenerator.getExitCode.

Returns the exit code that should be returned from the execute method.

private Optional<ExecuteTestsCommand.ReportingOptions>
pack-priv Optional<Path>
pack-priv boolean
pack-priv TestConsoleOutputOptions
pack-priv TestDiscoveryOptions
Inherited from org.junit.platform.console.command.BaseCommand:
callexecutegetColorSchemeinitializeparseArgs

Field Detail

consoleTestExecutorFactoryback to summary
private final ConsoleTestExecutor.Factory consoleTestExecutorFactory
discoveryOptionsback to summary
pack-priv TestDiscoveryOptionsMixin discoveryOptions
Annotations
@Mixin
reportingOptionsback to summary
pack-priv ExecuteTestsCommand.ReportingOptions reportingOptions
Annotations
@ArgGroup
validate:false
order:6
heading:%n@|bold REPORTING|@%n%n
testOutputOptionsback to summary
pack-priv TestConsoleOutputOptionsMixin testOutputOptions
Annotations
@Mixin

Constructor Detail

ExecuteTestsCommandback to summary
pack-priv ExecuteTestsCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)

Method Detail

executeback to summary
protected TestExecutionSummary execute(PrintWriter out)

Implements abstract org.junit.platform.console.command.BaseCommand.execute.

Annotations
@Override
getExitCodeback to summary
public int getExitCode()

Implements picocli.CommandLine.IExitCodeGenerator.getExitCode.

Doc from picocli.CommandLine.IExitCodeGenerator.getExitCode.

Returns the exit code that should be returned from the execute method.

Annotations
@Override
getReportingOptionsback to summary
private Optional<ExecuteTestsCommand.ReportingOptions> getReportingOptions()
getReportsDirback to summary
pack-priv Optional<Path> getReportsDir()
isFailFastback to summary
pack-priv boolean isFailFast()
toTestConsoleOutputOptionsback to summary
pack-priv TestConsoleOutputOptions toTestConsoleOutputOptions()
toTestDiscoveryOptionsback to summary
pack-priv TestDiscoveryOptions toTestDiscoveryOptions()
org.junit.platform.console.command back to summary

pack-priv Class ExecuteTestsCommand.ReportingOptions

extends Object
Class Inheritance
  • java.lang.Object
  • org.junit.platform.console.command.ExecuteTestsCommand.ReportingOptions

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private @Nullable Path

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Optional<Path>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

failFastback to summary
private boolean failFast
Annotations
@Option
names:--fail-fast
description:Stops test execution after the first failed test.
Since
6.0
failIfNoTestsback to summary
private boolean failIfNoTests
Annotations
@Option
names:--fail-if-no-tests
description:Fail and return exit status code 2 if no tests are found.
reportsDirback to summary
private @Nullable Path reportsDir
Annotations
@Option
names:--reports-dir
paramLabel:DIR
description:Enable report output into a specified local directory (will be created if it does not exist).

Constructor Detail

ReportingOptionsback to summary
pack-priv ReportingOptions()

Method Detail

getReportsDirback to summary
pack-priv Optional<Path> getReportsDir()