Package | Description |
---|---|
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 and Description |
---|---|
static TestIdentifier |
TestIdentifier.from(TestDescriptor testDescriptor)
Factory for creating a new
TestIdentifier from a TestDescriptor . |
TestIdentifier |
TestPlan.getTestIdentifier(String uniqueId)
Get the
TestIdentifier with the supplied unique ID. |
Modifier and Type | Method and Description |
---|---|
Set<TestIdentifier> |
TestPlan.getChildren(String parentId)
Get the children of the supplied unique ID.
|
Set<TestIdentifier> |
TestPlan.getChildren(TestIdentifier parent)
Get the children of the supplied
TestIdentifier . |
Set<TestIdentifier> |
TestPlan.getDescendants(TestIdentifier parent)
Get all descendants of the supplied
TestIdentifier (i.e.,
all of its children and their children, recursively). |
Optional<TestIdentifier> |
TestPlan.getParent(TestIdentifier child)
Get the parent of the supplied
TestIdentifier . |
Set<TestIdentifier> |
TestPlan.getRoots()
Get the root
TestIdentifiers for this test plan. |
Modifier and Type | Method and Description |
---|---|
void |
TestPlan.add(TestIdentifier testIdentifier)
Add the supplied
TestIdentifier to this test plan. |
default void |
TestExecutionListener.dynamicTestRegistered(TestIdentifier testIdentifier)
Called when a new, dynamic
TestIdentifier has been registered. |
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. |
default void |
TestExecutionListener.executionSkipped(TestIdentifier testIdentifier,
String reason)
Called when the execution of a leaf or subtree of the
TestPlan
has been skipped. |
default void |
TestExecutionListener.executionStarted(TestIdentifier testIdentifier)
Called when the execution of a leaf or subtree of the
TestPlan
is about to be started. |
Set<TestIdentifier> |
TestPlan.getChildren(TestIdentifier parent)
Get the children of the supplied
TestIdentifier . |
Set<TestIdentifier> |
TestPlan.getDescendants(TestIdentifier parent)
Get all descendants of the supplied
TestIdentifier (i.e.,
all of its children and their children, recursively). |
Optional<TestIdentifier> |
TestPlan.getParent(TestIdentifier child)
Get the parent of the supplied
TestIdentifier . |
default void |
TestExecutionListener.reportingEntryPublished(TestIdentifier testIdentifier,
ReportEntry entry)
Called when additional test reporting data has been published for
the supplied
TestIdentifier . |
Modifier and Type | Method and Description |
---|---|
long |
TestPlan.countTestIdentifiers(Predicate<? super TestIdentifier> predicate)
Count all
TestIdentifiers that satisfy the
given predicate. |
Modifier and Type | Method and Description |
---|---|
TestIdentifier |
TestExecutionSummary.Failure.getTestIdentifier()
Get the identifier of the failed test or container.
|
Modifier and Type | Method and Description |
---|---|
void |
LoggingListener.dynamicTestRegistered(TestIdentifier testIdentifier) |
void |
SummaryGeneratingListener.dynamicTestRegistered(TestIdentifier testIdentifier) |
void |
LoggingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
void |
SummaryGeneratingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
void |
LoggingListener.executionSkipped(TestIdentifier testIdentifier,
String reason) |
void |
SummaryGeneratingListener.executionSkipped(TestIdentifier testIdentifier,
String reason) |
void |
LoggingListener.executionStarted(TestIdentifier testIdentifier) |
void |
SummaryGeneratingListener.executionStarted(TestIdentifier testIdentifier) |