You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "kalayciburak (via GitHub)" <gi...@apache.org> on 2026/08/12 12:04:44 UTC

[PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

kalayciburak opened a new pull request, #3429:
URL: https://github.com/apache/maven-surefire/pull/3429

   ## Summary
   
   Cucumber scenarios can still report `Tests run: 0` when the JUnit Platform on the test classpath is older than 1.8.
   
   `RunListenerAdapter` walked parents through `TestIdentifier.getParentIdObject()`, which only exists from Platform 1.8. On older launchers the walk no-ops, scenarios keep the feature display name as `sourceName`, and `TestSetRunListener` flushes an empty stats bucket for the runner class.
   
   This switches parent resolution to `TestPlan.getParent(TestIdentifier)`, available since Platform 1.0, for both `findTopParent` and `findFirstParentContainerAndSourceClass`.
   
   Fixes #3428
   
   ## Test plan
   
   - [x] `mvn -pl surefire-providers/surefire-junit-platform test -Dtest=RunListenerAdapterTest` — 28/28 GREEN (includes new `notifiedWithRunnerClassWhenCucumberScenarioHasNoClassSource`)
   - [x] `mvn -pl surefire-providers/surefire-junit-platform test` — 84/84 GREEN


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

Posted by "olamy (via GitHub)" <gi...@apache.org>.
olamy commented on PR #3429:
URL: https://github.com/apache/maven-surefire/pull/3429#issuecomment-5277757345

   > This will be on 3.5.7 right? @olamy
   
   this will be merged to `master` so in the coming 3.6.0-M2. 
   then will need a follow up for cherry-pick in 3.5.x branch 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

Posted by "aghoussaini (via GitHub)" <gi...@apache.org>.
aghoussaini commented on PR #3429:
URL: https://github.com/apache/maven-surefire/pull/3429#issuecomment-5277472045

   This will be on 3.5.7 right? @olamy 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

Posted by "olamy (via GitHub)" <gi...@apache.org>.
olamy commented on PR #3429:
URL: https://github.com/apache/maven-surefire/pull/3429#issuecomment-5275785168

   Thanks for the PR. 
   I'm bit curious to see any IT test because the current test for cucumber does not have any issues?
   Is there anything you could add as IT test to show it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

Posted by "olamy (via GitHub)" <gi...@apache.org>.
olamy merged PR #3429:
URL: https://github.com/apache/maven-surefire/pull/3429


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

Posted by "aghoussaini (via GitHub)" <gi...@apache.org>.
aghoussaini commented on PR #3429:
URL: https://github.com/apache/maven-surefire/pull/3429#issuecomment-5267555435

   @olamy can you take a look at this? We are facing an issue on 3.5.6 which this PR resolves. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #3428: resolve parents via TestPlan.getParent for pre-1.8 platforms [maven-surefire]

Posted by "kalayciburak (via GitHub)" <gi...@apache.org>.
kalayciburak commented on PR #3429:
URL: https://github.com/apache/maven-surefire/pull/3429#issuecomment-5276638642

   yep, current cucumber IT is on 5.13 so it never hits this. added CucumberJUnit4VintageIT on vintage + platform 1.7.2, that's the Tests run: 0 path. pushed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org