Skip to content
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

Parallel Execution of Features #2773

Closed
iamsethi opened this issue Jun 28, 2023 · 3 comments
Closed

Parallel Execution of Features #2773

iamsethi opened this issue Jun 28, 2023 · 3 comments

Comments

@iamsethi
Copy link

I've gone through the PR and below documentation

Executing features in parallel
By default, when parallel execution in enabled, scenarios and examples are executed in parallel. Due to limitations JUnit 4 could only execute features in parallel. This behaviour can be restored by setting the configuration parameter cucumber.execution.execution-mode.feature to same_thread

Expected Results - As i've given below property in my junit platform properties so i am expecting all scenarios to run sequentially

cucumber.publish.quiet=true
cucumber.execution.parallel.enabled=true
cucumber.execution.execution-mode.feature=same_thread

Actual Results

All scenarios inside the Feature are running concurrently

Logs
2023-06-28 17:59:36.259 ForkJoinPool-1-worker-1 INFO r.t.q.i.b.s.CommonSteps:12 - Current Thread Name: ForkJoinPool-1-worker-1
2023-06-28 17:59:36.259 ForkJoinPool-1-worker-3 INFO r.t.q.i.b.s.CommonSteps:12 - Current Thread Name: ForkJoinPool-1-worker-3
2023-06-28 17:59:36.259 ForkJoinPool-1-worker-2 INFO r.t.q.i.b.s.CommonSteps:12 - Current Thread Name: ForkJoinPool-1-worker-2
2023-06-28 17:59:36.259 ForkJoinPool-1-worker-4 INFO r.t.q.i.b.s.CommonSteps:12 - Current Thread Name: ForkJoinPool-1-worker-4
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-3 INFO r.t.q.i.b.s.CommonSteps:17 - Current Thread ID: 31
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-4 INFO r.t.q.i.b.s.CommonSteps:17 - Current Thread ID: 32
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-2 INFO r.t.q.i.b.s.CommonSteps:17 - Current Thread ID: 30
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-1 INFO r.t.q.i.b.s.CommonSteps:17 - Current Thread ID: 29
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-4 INFO r.t.q.i.b.s.CommonSteps:20 - тест стартует
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-2 INFO r.t.q.i.b.s.CommonSteps:20 - тест стартует
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-3 INFO r.t.q.i.b.s.CommonSteps:20 - тест стартует
2023-06-28 17:59:36.261 ForkJoinPool-1-worker-1 INFO r.t.q.i.b.s.CommonSteps:20 - тест стартует
2023-06-28 17:59:36.263 ForkJoinPool-1-worker-4 INFO r.t.q.i.b.s.CommonSteps:23 - тест завершен
2023-06-28 17:59:36.263 ForkJoinPool-1-worker-1 INFO r.t.q.i.b.s.CommonSteps:23 - тест завершен
2023-06-28 17:59:36.263 ForkJoinPool-1-worker-2 INFO r.t.q.i.b.s.CommonSteps:23 - тест завершен
2023-06-28 17:59:36.263 ForkJoinPool-1-worker-3 INFO r.t.q.i.b.s.CommonSteps:23 - тест завершен

PFA - Repo used

junit5-cucumber-spring-allure-example.zip

@mpkorstanje
Copy link
Contributor

You've got the wrong version of Cucumber. Try with the latest. ;)

@iamsethi
Copy link
Author

You've got the wrong version of Cucumber. Try with the latest. ;)

which version i should use?

@mpkorstanje
Copy link
Contributor

Have a look around the repo. The latest version should be listed in a few places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants