Closed
Description
openedon Nov 19, 2023
Steps to reproduce
- Set junit.platform.launcher.interceptors.enabled to true
- Try running JUnit tests as modules
- Exception:
Caused by: java.util.ServiceConfigurationError: org.junit.platform.launcher.LauncherInterceptor: module org.junit.platform.launcher does not declare uses
Context
- Used versions (Jupiter/Vintage/Platform): Platform 1.10.1
- Build Tool/IDE: Gradle
Probably an oversight since JUnit platform consumed as a module is an uncommon configuration.
The new Interceptor probably just needs to be added here:
https://github.com/junit-team/junit5/blob/main/junit-platform-launcher/src/module/org.junit.platform.launcher/module-info.java#L37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment