Package | Description |
---|---|
org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
org.junit.platform.launcher.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder . |
org.junit.platform.launcher.listeners |
Common
TestExecutionListener implementations and related support classes for
the Launcher . |
org.junit.platform.reporting.legacy |
Support for legacy reporting formats.
|
org.junit.platform.reporting.legacy.xml |
Support for generating XML reports using a format which is compatible with
the de facto standard for JUnit 4 based test reports that was made popular
by the Ant build system.
|
org.junit.platform.runner |
Runner and annotations for configuring and executing tests on the
JUnit Platform in a JUnit 4 environment. |
Modifier and Type | Method and Description |
---|---|
TestPlan |
Launcher.discover(LauncherDiscoveryRequest launcherDiscoveryRequest)
Discover tests and build a
TestPlan according to the supplied
LauncherDiscoveryRequest by querying all registered engines and
collecting their results. |
static TestPlan |
TestPlan.from(java.util.Collection<TestDescriptor> engineDescriptors)
Construct a new
TestPlan from the supplied collection of
TestDescriptors . |
Modifier and Type | Method and Description |
---|---|
void |
Launcher.execute(TestPlan testPlan,
TestExecutionListener... listeners)
Execute the supplied
TestPlan and notify
registered listeners about
the progress and results of the execution. |
default void |
TestExecutionListener.testPlanExecutionFinished(TestPlan testPlan)
Called when the execution of the
TestPlan has finished,
after all tests have been executed. |
default void |
TestExecutionListener.testPlanExecutionStarted(TestPlan testPlan)
Called when the execution of the
TestPlan has started,
before any test has been executed. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
InternalTestPlan |
Modifier and Type | Field and Description |
---|---|
private TestPlan |
InternalTestPlan.delegate |
Modifier and Type | Method and Description |
---|---|
TestPlan |
DefaultLauncher.discover(LauncherDiscoveryRequest discoveryRequest) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultLauncher.execute(TestPlan testPlan,
TestExecutionListener... listeners) |
void |
TestExecutionListenerRegistry.CompositeTestExecutionListener.testPlanExecutionFinished(TestPlan testPlan) |
void |
TestExecutionListenerRegistry.CompositeTestExecutionListener.testPlanExecutionStarted(TestPlan testPlan) |
Constructor and Description |
---|
InternalTestPlan(Root root,
TestPlan delegate) |
Modifier and Type | Field and Description |
---|---|
private TestPlan |
SummaryGeneratingListener.testPlan |
private TestPlan |
MutableTestExecutionSummary.testPlan |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
LegacyReportingUtils.getClassName(TestPlan testPlan,
TestIdentifier testIdentifier)
Deprecated.
Get the class name for the supplied
TestIdentifier using the
supplied TestPlan . |
private static TestIdentifier |
LegacyReportingUtils.getParent(TestPlan testPlan,
TestIdentifier testIdentifier)
Deprecated.
|
private static java.lang.String |
LegacyReportingUtils.getParentLegacyReportingName(TestPlan testPlan,
TestIdentifier testIdentifier)
Deprecated.
|
void |
SummaryGeneratingListener.testPlanExecutionFinished(TestPlan testPlan) |
void |
LoggingListener.testPlanExecutionFinished(TestPlan testPlan) |
void |
SummaryGeneratingListener.testPlanExecutionStarted(TestPlan testPlan) |
void |
LoggingListener.testPlanExecutionStarted(TestPlan testPlan) |
Constructor and Description |
---|
MutableTestExecutionSummary(TestPlan testPlan) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
LegacyReportingUtils.getClassName(TestPlan testPlan,
TestIdentifier testIdentifier)
Get the class name for the supplied
TestIdentifier using the
supplied TestPlan . |
Modifier and Type | Field and Description |
---|---|
private TestPlan |
XmlReportData.testPlan |
Modifier and Type | Method and Description |
---|---|
(package private) TestPlan |
XmlReportData.getTestPlan() |
Modifier and Type | Method and Description |
---|---|
void |
LegacyXmlReportGeneratingListener.testPlanExecutionFinished(TestPlan testPlan) |
void |
LegacyXmlReportGeneratingListener.testPlanExecutionStarted(TestPlan testPlan) |
Constructor and Description |
---|
XmlReportData(TestPlan testPlan,
java.time.Clock clock) |
Modifier and Type | Field and Description |
---|---|
private TestPlan |
JUnitPlatformTestTree.testPlan |
Modifier and Type | Method and Description |
---|---|
TestPlan |
JUnitPlatformTestTree.getTestPlan() |
Modifier and Type | Method and Description |
---|---|
private void |
JUnitPlatformTestTree.buildDescription(TestIdentifier identifier,
org.junit.runner.Description parent,
TestPlan testPlan) |
private void |
JUnitPlatformTestTree.buildDescriptionTree(org.junit.runner.Description suiteDescription,
TestPlan testPlan) |
private org.junit.runner.Description |
JUnitPlatformTestTree.createJUnit4Description(TestIdentifier identifier,
TestPlan testPlan) |
private org.junit.runner.Description |
JUnitPlatformTestTree.generateSuiteDescription(TestPlan testPlan,
java.lang.Class<?> testClass) |
Constructor and Description |
---|
JUnitPlatformTestTree(TestPlan testPlan,
java.lang.Class<?> testClass) |