You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Surefire 3.5.3 does not include Cucumber scenarios in test summary count #2984
This issue is reproducing only using Cucumber JVM, Maven Surefire 3.5.3 and Junit 5.
I've made some separate tests using only Maven Surefire 3.5.3 and Junit 5 and it works fine.
The problem reproduces only when Cucumber is added into the mix.
changed the title [-]Missing information about executed scenarios inside surefire reports[/-][+]Missing information about executed scenarios inside Surefire reports[/+]on Mar 31, 2025
As this works in 3.5.2 and fails in 3.5.3 this is probably a problem with Surefire. But I currently don't have the time for a deep dive. I think you'll want to report it to Surefire. Using the https://github.com/cucumber/cucumber-java-skeleton/ should make a good base for a reproducer.
changed the title [-]Missing information about executed scenarios inside Surefire reports[/-][+]Surefire 2.5.3 does include Cucumber tests in test summary count[/+]on Jun 11, 2025
changed the title [-]Surefire 2.5.3 does include Cucumber tests in test summary count[/-][+]Surefire 2.5.3 does include Cucumber scenarios in test summary count[/+]on Jun 11, 2025
changed the title [-]Surefire 2.5.3 does include Cucumber scenarios in test summary count[/-][+]Surefire 3.5.3 does not include Cucumber scenarios in test summary count[/+]on Jun 11, 2025
Note: In their tests Surefire use cucumber.junit-platform.naming-strategy=long instead of surefire so we might have to deprecate the workaround if things have been fixed properly.
Activity
[-]Missing information about executed scenarios inside surefire reports[/-][+]Missing information about executed scenarios inside Surefire reports[/+]pzygielo commentedon Mar 31, 2025
Sounds a bit like https://issues.apache.org/jira/browse/SUREFIRE-2298
mpkorstanje commentedon Mar 31, 2025
Hey thanks for the heads up!
As this works in 3.5.2 and fails in 3.5.3 this is probably a problem with Surefire. But I currently don't have the time for a deep dive. I think you'll want to report it to Surefire. Using the https://github.com/cucumber/cucumber-java-skeleton/ should make a good base for a reproducer.
fslevoaca-ionos commentedon Mar 31, 2025
Ok,
I will close this issue for now.
Opened similar issue on their side:
https://issues.apache.org/jira/browse/SUREFIRE-2299
Thanks,
mpkorstanje commentedon Apr 11, 2025
Fix being worked on here apache/maven-surefire#828
[-]Missing information about executed scenarios inside Surefire reports[/-][+]Surefire 2.5.3 does include Cucumber tests in test summary count[/+][-]Surefire 2.5.3 does include Cucumber tests in test summary count[/-][+]Surefire 2.5.3 does include Cucumber scenarios in test summary count[/+]mpkorstanje commentedon Jun 11, 2025
Reopened and pinned because questions keep popping up.
Surefire moved their issues to Github. The matching issue is now apache/maven-surefire#834.
The current workaround: Downgrade to 3.5.2
pzygielo commentedon Jun 11, 2025
pzygielo commentedon Jun 11, 2025
[-]Surefire 2.5.3 does include Cucumber scenarios in test summary count[/-][+]Surefire 3.5.3 does not include Cucumber scenarios in test summary count[/+]mpkorstanje commentedon Jun 11, 2025
Nedgrader surefire fordi 3.5.3 har en bug som gjør at den ikke plukke…
Nedgrader surefire fordi 3.5.3 har en bug som gjør at den ikke plukke…
mpkorstanje commentedon Sep 5, 2025
With apache/maven-surefire#828 merged we can now retest:
Note: In their tests Surefire use
cucumber.junit-platform.naming-strategy=longinstead ofsurefireso we might have to deprecate the workaround if things have been fixed properly.Warn when surefire naming strategy is used (#3067)
mpkorstanje commentedon Sep 14, 2025
Recommended solution:
cucumber.junit-platform.naming-strategy=surefiretocucumber.junit-platform.naming-strategy=longfslevoaca-ionos commentedon Sep 15, 2025
Yep,
Using surefire 2.5.4 solves current issue regardless if I use
surefireorlongforcucumber.junit-platform.naming-strategyproperty.Thanks !