You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 - тест завершен
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
The text was updated successfully, but these errors were encountered: