Skip to content

Issues when running parallel tests with Mocha runner #4431

@garg3133

Description

@garg3133

Description of the bug/issue

Encountered the following issues when running tests in parallel using Mocha:

  • examples/basic/todoList.js test does not work on Mocha but works on the default runner:
    Image
  • No colours in output, even though they are present when running the tests sequentially.

Steps to reproduce

  • Create a new folder and run npm init nightwatch@latest to scaffold a new project with the Mocha runner (choose Javascript / Mocha option when asked).
  • Once the project is scaffolded, run npx nightwatch nightwatch/examples/basic --env chrome to run a few tests in parallel.

Nightwatch.js Version

3.13.0

Node Version

20

Browser

Chrome

Operating System

macOS

Additional Information

No response

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