apache / apache/maven-surefire

[SUREFIRE-1947] Maven Failsafe Plugin - Junit5 extension autodetection no longer works in M5

Open
#2,903 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[Marc Nuri](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=manusa)** opened **[SUREFIRE-1947](https://issues.apache.org/jira/browse/SUREFIRE-1947?redirect=false)** and commented

After the upgrade from [3.0.0-M4 to 3.0.0-M5](https://github.com/jkubeio/jkube-integration-tests/pull/111), one of our extensions registered using Java SPI is no longer detected.

The applicable extension is [ReportExtension](https://github.com/jkubeio/jkube-integration-tests/blob/99eb3e7905e88ffb44579df35df883b5d4248461/it/src/test/java/org/eclipse/jkube/integrationtests/ReportExtension.java) which is registered via a [org.junit.jupiter.api.extension.Extension](https://github.com/jkubeio/jkube-integration-tests/blob/99eb3e7905e88ffb44579df35df883b5d4248461/it/src/test/resources/META-INF/services/org.junit.jupiter.api.extension.Extension) file.
Autodetection is enabled in [junit-platform.properties](https://github.com/jkubeio/jkube-integration-tests/blob/99eb3e7905e88ffb44579df35df883b5d4248461/it/src/test/resources/junit-platform.properties).

The same configuration works fine in M4, but fails in M5.

I couldn't find anything related to that in the release notes or project documentation.

---

**Affects:** 3.0.0-M5

Contributor guide

Open the contributing guide

Research direction

Start with the linked integration-test ReportExtension.java, its META-INF/services/org.junit.jupiter.api.extension.Extension registration, and junit-platform.properties. Reproduce the extension autodetection behavior with Maven Failsafe 3.0.0-M4 and M5, then inspect the Surefire/Failsafe changes between those versions. Done means the Java SPI extension is detected under M5 and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.