-
-
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
feature-by-feature Parallel testing #2217
Comments
The answer here about why we don't have feature-level hooks has some overlap with what you're asking:
That reads as just running in serial, but I think what you want is to have all scenarios from a single feature run in sequence and on the same worker? If so you might be able to lean on custom work assignment, at least to keep one scenario at a time running from a given feature (via
Could you say more about what problem this causes for you? Ideally scenarios should work independently. |
Thank you very much for the reply and links to have a look at, David. Let's say we have a scenario B-1: Save an existing report in custom tap Then I run 2 workers expecting one to do I will try again after adding some more steps to make each scenario finish and start from the same page. Thank you again for the reply! |
Yeah I think this is a good approach to run with. Like scenarios A-2 and A-3 could start with something like |
This is now working very well! |
In case it helps #1153 |
🤔 What's the problem you're trying to solve?
I am using Cucumber.js + Playwright for E2E testing in a javascript project.
I want to run all feature files in parallel but inline command
--parallel 3
runs all scenarios in various feature files not in order.✨ What's your proposed solution?
Is there any cucumber builtin option for parallel testing to run the scenarios in one feature file in order and then move on to the next feature file?
⛏ Have you considered any alternatives or workarounds?
I understand this is possible using JUnit4 but not sure if this can be done in Javascript project.
https://cucumber.io/docs/guides/parallel-execution/?lang=java#junit-4
📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: