Registry / testing / junit-platform-runner

junit-platform-runner

JSON →
library1.14.4javamavenunverified

Provides a runner for executing JUnit 5 tests on the JUnit Platform, enabling compatibility with older JUnit 4 test runners.

<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-runner</artifactId> <version>1.14.4</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-PLATFORM-RUN
J
junit-platform-runner
testingjavav1.14.4
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.

JUnitPlatform
org.junit.platform.runner.JUnitPlatform

Defines a test suite that runs all tests in the specified package using JUnit Platform.

import org.junit.platform.runner.JUnitPlatform; import org.junit.platform.suite.api.SelectPackages; import org.junit.runner.RunWith; @RunWith(JUnitPlatform.class) @SelectPackages("com.example.tests") public class TestSuite { }
Debug
Known issues
breakingJUnitPlatform runner is deprecated in JUnit 5.4 and removed in JUnit 5.5; use @Suite instead.
fix
Replace @RunWith(JUnitPlatform.class) with @Suite and @SelectPackages from org.junit.platform.suite.api.
affects: >=5.4.0
Upgrade
Version history
1.14.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
junit-platform-runner — mvn dependency:get junit-platform-runner · libregistry