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
In your project Cucumber gets two test discovery/execution requests. One when Maven makes a discovery request. And a second one through the JUnit Platform Suite engine. Normally the request made by Maven fails to discover any tests because Maven only requests the discovery of classes. However by setting the cucumber.features it will discover something.
So when using cucumber.features you must ensure that there is only a single execution of the Cucumber Engine.
Ultimately this comes down to a lack of proper support for the JUnit Platform in Maven (junit-team/junit5#2849) and IDEA. If that existed you would not have to use the JUnit Platform Suite Engine to run Cucumber.
It seems tests are executed twice via the
cucumber.features
property.Project to reproduce the issue: https://github.com/fslev/cucumber-showcase
Steps to reproduce the behavior:
cucumber.features
propertyActual:
Scenario 1_1
is executed twice.While using tags:
... scenario is executed correctly, only once.
Thanks
The text was updated successfully, but these errors were encountered: