-
Notifications
You must be signed in to change notification settings - Fork 71
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
Scenario execution priority attributes #187
Comments
To really solve this issue, in addition to the |
@ilslv I'm not sure this is the responsibility of a This priority issue doesn't have high priority for us at the moment 😊
That would be worthful improvement anyway.
How it should help? I don't really grasp your idea. |
If in the batch there is |
@ilslv yup, or even lower/higher |
Note: I'm an outsider that's new to the Rust community. I just stumbled on this project because I wanted to potentially explore Rust-Cucumber as an option. Wouldn't priority of scenario be handled by the default parsing behavior of Gherkin files? Maybe this project is different, but the default behavior is to sort steps by the feature file name (maybe file path), then the top-to-bottom order of scenarios. If you want to enforce a priority order, preface the features with a numeral that represents your desired order, and you can even use a dense-ranking system for scenarios that don't need to be run before or after a particular group. Example:
|
@Solonotix this library works the following way:
So, at the moment, we're not preserving any order when executing and printing Such concurrent execution allows us to run ~1000 E2E scenarios on a GraphQL API endpoint in nearly 10-15 minutes. Some of those scenarios test expiration mechanisms and wait for 3-5 minutes for the expiration to happen. Some of them are |
@Solonotix I also would argue that |
Priority attribute tells the executor how early need to add scenario to the execution queue.
In some cases there is no way to tell the executor to run scenarios in specific order.
For example: Scenarios that will be executing for a long time must be added to execution queue before others.
Design proposal:
Scenarios with lower priority value will be added to execution queue earlier (or vice versa).
The text was updated successfully, but these errors were encountered: