Skip to content

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

@shartte

Description

@shartte

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions