Package org.junit.platform.launcher
@NullMarked
package org.junit.platform.launcher
Public API for configuring and launching test plans.
This API is typically used by IDEs and build tools.
-
ClassDescription
EngineDiscoveryResultencapsulates the result of test discovery by aTestEngine.Status of test discovery by aTestEngine.AnEngineFilteris applied to allTestEnginesbefore they are used.TheLauncherAPI is the main entry point for client code that wishes to discover and execute tests using one or more test engines.Collection of constants related toLauncher.Register a concrete implementation of this interface with aLauncherDiscoveryRequestBuilderorLauncherto be notified of events that occur during test discovery.LauncherDiscoveryRequestextends theEngineDiscoveryRequestAPI with additional filters that are applied by theLauncheritself.LauncherExecutionRequestencapsulates a request for test execution passed to theLauncher.Interceptor for test discovery and execution by aLauncherin the context of aLauncherSession.LauncherInterceptor.Invocation<T extends @Nullable Object>An invocation that can be intercepted.TheLauncherSessionAPI is the main entry point for client code that wishes to repeatedly discover and execute tests using one or more test engines.Register an implementation of this interface to be notified when aLauncherSessionis opened and closed.PostDiscoveryFilterthat is applied to the fully qualifiedMethodname without parameters.APostDiscoveryFilteris applied toTestDescriptorsafter test discovery.Factory methods for creatingPostDiscoveryFiltersbased on included and excluded tags or tag expressions.Register a concrete implementation of this interface with aLauncherorLauncherExecutionRequestto be notified of events that occur during test execution.Immutable data transfer object that represents a test or container which is usually part of aTestPlan.TestPlandescribes the tree of tests and containers as discovered by aLauncher.Visitor forTestIdentifiersin aTestPlan.