Skip to content

Custom parallel execution and BDD cause tests to be duplicated #5725

Description

@al-bre

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions