Uses of Interface
org.junit.platform.launcher.TestExecutionListener
Package
Description
Public API for configuring and launching test plans.
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder
.Common
TestExecutionListener
implementations and related support classes for
the Launcher
.-
Uses of TestExecutionListener in org.junit.platform.launcher
Modifier and TypeMethodDescriptionvoid
Launcher.execute
(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners) Execute aTestPlan
which is built according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution.void
Launcher.execute
(TestPlan testPlan, TestExecutionListener... listeners) Execute the suppliedTestPlan
and notify registered listeners about the progress and results of the execution.void
Launcher.registerTestExecutionListeners
(TestExecutionListener... listeners) Register one or more listeners for test execution. -
Uses of TestExecutionListener in org.junit.platform.launcher.core
Modifier and TypeMethodDescriptionLauncherConfig.getAdditionalTestExecutionListeners()
Get the collection of additional test execution listeners that should be added to theLauncher
.Modifier and TypeMethodDescriptionLauncherConfig.Builder.addTestExecutionListeners
(TestExecutionListener... listeners) Add all of the supplied test execution listeners to the configuration.void
EngineExecutionOrchestrator.execute
(LauncherDiscoveryResult discoveryResult, org.junit.platform.engine.EngineExecutionListener engineExecutionListener, TestExecutionListener testExecutionListener) Executes tests for the supplied discoveryResult and notifies the supplied engineExecutionListener and testExecutionListener of execution events. -
Uses of TestExecutionListener in org.junit.platform.launcher.listeners
Modifier and TypeClassDescriptionclass
SimpleTestExecutionListener
for logging informational messages for all events via aBiConsumer
that consumesThrowable
andSupplier<String>
.class
SimpleTestExecutionListener
that generates a summary of the test execution.class
UniqueIdTrackingListener
is aTestExecutionListener
that tracks the unique IDs of all tests that were executed during the execution of theTestPlan
and generates a file containing the unique IDs once execution of theTestPlan
has finished.