Skip to content

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

Closed

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

  1. DenysKuchma commented on Oct 14, 2026

    @DenysKuchma
    Collaborator

    Resolve here
    #5721

    Thank you for your issue

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

Metadata

Metadata

Assignees

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