Registry / testing / junit-platform-launcher

junit-platform-launcher

JSON →
library6.0.3javamavenunverified

Module of JUnit 5 that provides the launcher API for discovering and executing tests on the JUnit Platform.

<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> <version>6.0.3</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-PLATFORM-LAU
J
junit-platform-launcher
testingjavav6.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Launcher
org.junit.platform.launcher.Launcher

Discovers and executes a test class using the JUnit Platform Launcher.

import org.junit.platform.launcher.Launcher; import org.junit.platform.launcher.LauncherDiscoveryRequest; import org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder; import org.junit.platform.launcher.core.LauncherFactory; import static org.junit.platform.engine.discovery.DiscoverySelectors.selectClass; public class Example { public static void main(String[] args) { LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request() .selectors(selectClass("com.example.MyTest")) .build(); Launcher launcher = LauncherFactory.create(); launcher.execute(request); } }
Debug
Known issues
breakingJUnit Platform Launcher 6.x requires Java 11+; older versions may not be compatible.
fix
Ensure your project uses Java 11 or later for JUnit Platform 6.x.
affects: >=6.0.0
Upgrade
Version history
6.0.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
junit-platform-launcher — mvn dependency:get junit-platform-launcher · libregistry