Get an ERROR executing surefire/cucumber test (NoSuchMethodError -> getFirstElement()) after update junit-platform-suite 1.10.3 to 1.11.0 #3995
Closed
QuaritschGerFfm
started this conversation in
General
Replies: 1 comment 4 replies
-
Looks like your build is pulling in a pre-1.11 version of junit-platform-commons. Is this a Spring (Boot) project? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Has someone the same problem as described below?
Thanks in advance for any comment!
I tried to update the junit-platform-suite version from 1.10.3 (old) to 1.11.0 (new)
With the following "old" configuration cutout: POM.xml
In the console we are executing the test by:
After build was successful, it starts the tests and the output is like:
`...
[INFO]
[INFO] --- maven-surefire-plugin:3.5.0:test (default-test) @ komponententest ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en -Duser.country=US
Sep 15, 2024 7:23:03 PM io.cucumber.junit.platform.engine.DiscoverySelectorResolver warnWhenCucumberFeaturesPropertyIsUsed
WARNING: Discovering tests using the cucumber.features property. Other discovery selectors are ignored!
This is a work around for the limited JUnit 5 support in Maven and Gradle. Please request/upvote/sponsor/ect better support for JUnit 5 discovery selectors. For details see: cucumber/cucumber-jvm#2498
If you are using the JUnit 5 Suite Engine, Platform Launcher API or Console Launcher you should not use this property. Please consult the JUnit 5 documentation on test selection.
[INFO] Running de.db.xxxxx.yyy.features.runners.KomponententestCucumber
[INFO] Running io.cucumber.junit.platform.engine.CucumberTestEngine
...
`
==> This works!
Now I update the junit-platform-suite version to 1.11.0 (new):
and in the console:
the build step
Cutout of the detailed output:
Beta Was this translation helpful? Give feedback.
All reactions