-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to affect future testflow and structure #875
Comments
this is now done via https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/step_definitions.md#skipped-steps
I think this would be better solved by allowing cucumber to be run in parallel
Scenarios should not be dependent on each other so I don't see what reordering is useful for. |
Closing due to lack of response. Please reopen if necessary |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Split from #873 :
To clarify:
Once cucumber begins to run (i.e. BeforeFeatures hook fires), the entire future test-flow has already been loaded and sequenced in memory. The features are ordered, and within each of them, the scenario order has been determined (all of them passed the run parameters tag filtering, of course).
It could be very helpful to manipulate this structure in ways that will affect the future test flow. These manipulations include:
Skipping scenarios and features - For example, say my selenium connection timed out on one of the ui tests, and I know from here on I'll just be waisting time trying to setup any other ui test. I would rather be able to skip any future scenario marked with
@ui
for this test run.Adding scenarios and features - Some test environments are extremely asynchronous. i.e. some business processes may take several minutes (or more) to complete. A test that initiates an operation can add a validation scenario to the end of the test flow and allow all the other tests to run in between. Current solutions require the tests to be "forced" into the correct order by naming conventions, and the end-of-the-stack tests are ran even if the initiating scenarios failed.
Reordering scenarios and features - There can be reasons for running tests in different order in different situations. If it were possible to manipulate the features payload in BeforeFeatures, the infrastructure implementer could account for environment / launch parameters and manipulate the stack accordingly.
These are just some examples of the top of my head.
The text was updated successfully, but these errors were encountered: