Registry / testing / junit-jupiter-engine

junit-jupiter-engine

JSON →
library6.1.0javamavenunverified

Module 'junit-jupiter-engine' of JUnit provides the test engine implementation for running JUnit 5 tests.

<dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>6.1.0</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-JUPITER-ENGI
J
junit-jupiter-engine
testingjavav6.1.0
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.

TestEngine
org.junit.platform.engine.TestEngine

Programmatic execution of JUnit 5 tests using the engine.

// The engine is typically used indirectly via build tools; direct usage is rare. import org.junit.platform.engine.TestEngine; import org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder; import org.junit.platform.launcher.core.LauncherFactory; import org.junit.platform.launcher.Launcher; public class Example { public static void main(String[] args) { LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request() .selectors(/* test selectors */) .build(); Launcher launcher = LauncherFactory.create(); launcher.execute(request); } }
Debug
Known issues
gotchaJUnit Jupiter Engine requires the API module (junit-jupiter-api) at runtime.
fix
Ensure both junit-jupiter-api and junit-jupiter-engine are on the classpath.
affects: >=5.0.0
Upgrade
Version history
6.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
junit-jupiter-engine — mvn dependency:get junit-jupiter-engine · libregistry