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
Hello,
As a new user of this quarkus extension, I expected to see only my scenarios as tests launched, but it seems that cucumber specific actions (starting/ending cucumber, before/after methods) are shown as separate tests also.
After reading code in CucumberQuarkusTest, this behavior is due to creation of DynamicTests for start/end of cucumber, and beforeFeature) :
I may understand that's done in order to see each step separately, but this is causing the following issues when generating Junit surefire/failsafe reports:
The number of tests shown is not correct
Showing tests that are not really ones
In order to solve this issue, we my proceed as following:
Create beforeAll and afterAll methods that will be responsible for starting/ending cucumber (in order to declare them as non static, we may need to add the following annotation: @TestInstance(TestInstance.Lifecycle.PER_CLASS)
Include call to beforeFeature inside call of pickles (DynamicTests)
If you agree with this proposal, I can suggest a patch.
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
As a new user of this quarkus extension, I expected to see only my scenarios as tests launched, but it seems that cucumber specific actions (starting/ending cucumber, before/after methods) are shown as separate tests also.
After reading code in CucumberQuarkusTest, this behavior is due to creation of DynamicTests for start/end of cucumber, and beforeFeature) :
quarkus-cucumber/runtime/src/main/java/io/quarkiverse/cucumber/CucumberQuarkusTest.java
Line 122 in d288e48
quarkus-cucumber/runtime/src/main/java/io/quarkiverse/cucumber/CucumberQuarkusTest.java
Line 128 in d288e48
quarkus-cucumber/runtime/src/main/java/io/quarkiverse/cucumber/CucumberQuarkusTest.java
Line 166 in d288e48
I may understand that's done in order to see each step separately, but this is causing the following issues when generating Junit surefire/failsafe reports:
In order to solve this issue, we my proceed as following:
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
If you agree with this proposal, I can suggest a patch.
Thank you
The text was updated successfully, but these errors were encountered: