Closed HaiDoan1987 closed 1 year ago
Fixed in 3.6.7
@cliviu Question since I was trying out the junit5 cucumber parallel execution. cucumber.execution.parallel.config.fixed.parallelism=10 is not taking into account because of this all scenario's are started in parallel. Even when I set the parallelism to 1 I see that for each scenario a worker thread is started simultaneously.
Could you confirm if you have the same issue?
@cliviu Question since I was trying out the junit5 cucumber parallel execution. cucumber.execution.parallel.config.fixed.parallelism=10 is not taking into account because of this all scenario's are started in parallel. Even when I set the parallelism to 1 I see that for each scenario a worker thread is started simultaneously.
Could you confirm if you have the same issue?
hey @GianniGiglio , here are the docs . As long as cucumber.execution.parallel.enabled
is set, the scenarios are executed in parallel.
hey @GianniGiglio , here are the docs . As long as
cucumber.execution.parallel.enabled
is set, the scenarios are executed in parallel.
Thanks I know but image you have 20 scenario's and you've set cucumber.execution.parallel.config.fixed.parallelism=5 I see that all 20 scenario's are executed at the same time in parallel instead of just 5
This may be a good question for the Cucumber team I guess. We are just dealing with whatever threads are coming :-).
This may be a good question for the Cucumber team I guess. We are just dealing with whatever threads are coming :-).
Thanks i'll open a ticket for the cucumber team. I as just trying to confirm if you experienced the same issue. you can easlily see this when you use the timeline plugin
cucumber.plugin=io.cucumber.core.plugin.SerenityReporterParallel, pretty, json:target/cucumber.json, timeline:build/timeline/
The report clearly shows that all scenario's are executed at the same time instead of the number you configure. Makes it pretty unusable in this state
As @cliviu said, this is more a question for the Cucumber folk (Serenity doesn't have any control over how you configure the JUnit 5/Cucumber parallel options), but is it a fixed number of threads in total, or a fixed number of threads per core?
@wakaleo fixed number of threads based om my junit 5 experiance and parallelization. Agreed that this is a cucumber-jvm question or even something to ask the Junit team.
@wakaleo FYI this is a know bug you need to set the .max-pool-size property. If not, you run into a JUnit bug where more threads will start when your test waits for Web Driver to start.
@GianniGiglio Cool, thanks for the update
I'm following the https://serenity-bdd.github.io/docs/guide/cucumber document to set up the cucumber test run in parallel. After the test run