Skip to content

LauncherInterceptor is missing from the org.junit.platform.launcher module's uses declaration #3561

Closed

Description

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions