Running BDD tests from a custom parallel runner runs them twice. Not-BDD tests are properly run only once.
When tests are started with that setup, I receive the following warning on startup:
[Worker 01] Duplicate test names detected - Feature + Scenario name should be unique:
The problem seems to be that BDD tests are added twice to mocha.suite.tests, as removing duplicates from there in _beforeSuite results in BDD tests being correctly run only once.
I created a project showcasing that behavior https://github.com/al-bre/codeceptjs-parallel-bdd . I expect 7 tests in total to be executed when running in parallel mode, but instead the result is
OK | 12 passed // 10s
Running BDD tests from a custom parallel runner runs them twice. Not-BDD tests are properly run only once.
When tests are started with that setup, I receive the following warning on startup:
[Worker 01] Duplicate test names detected - Feature + Scenario name should be unique:The problem seems to be that BDD tests are added twice to mocha.suite.tests, as removing duplicates from there in _beforeSuite results in BDD tests being correctly run only once.
I created a project showcasing that behavior https://github.com/al-bre/codeceptjs-parallel-bdd . I expect 7 tests in total to be executed when running in parallel mode, but instead the result is
OK | 12 passed // 10s