| Package | Description |
|---|---|
| org.junit.platform.console.options |
Configuration options for JUnit's console launcher.
|
| org.junit.platform.engine |
Public API for test engines.
|
| org.junit.platform.engine.support.hierarchical |
Support classes and base implementation for any
TestEngine that wishes to organize test suites
hierarchically based on the
Node abstraction. |
| org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
| org.junit.platform.launcher.listeners |
Common
TestExecutionListener implementations and related support classes for
the Launcher. |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
Theme.status(TestExecutionResult result) |
| Modifier and Type | Method | Description |
|---|---|---|
static TestExecutionResult |
TestExecutionResult.aborted(java.lang.Throwable throwable) |
Obtain a
TestExecutionResult for an aborted execution
of a test or container with the supplied throwable. |
static TestExecutionResult |
TestExecutionResult.failed(java.lang.Throwable throwable) |
Obtain a
TestExecutionResult for a failed execution
of a test or container with the supplied throwable. |
static TestExecutionResult |
TestExecutionResult.successful() |
Obtain a
TestExecutionResult for a successful execution
of a test or container. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
EngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
Must be called when the execution of a leaf or subtree of the test tree
has finished, regardless of the outcome.
|
| Modifier and Type | Method | Description |
|---|---|---|
TestExecutionResult |
SingleTestExecutor.executeSafely(SingleTestExecutor.Executable executable) |
Execute the supplied
SingleTestExecutor.Executable and return a
TestExecutionResult based on the outcome. |
| Modifier and Type | Method | Description |
|---|---|---|
default void |
TestExecutionListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
Called when the execution of a leaf or subtree of the
TestPlan
has finished, regardless of the outcome. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
LoggingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
|
void |
SummaryGeneratingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |