Skip to content

Global Setup and Teardown in CucumberJSΒ #2614

@prince-inbaraj-sky

Description

@prince-inbaraj-sky

@davidjgoss

πŸ€” What's the problem you're trying to solve?

I'm running the test case in parallel mode with cucumber-js --tags --parallel 8, with current hooks in CucumberJS library BeforeAll and AfterAll running for 8 times. I want single setup and teardown method for all 8 parallel process.

✨ What's your proposed solution?

  1. add configuration level data in cucumber.json or CLI to make BeforeAll and AfterAll works only 1 time for all parallel process
  2. or add additional hooks like Setup and Teardown

⛏ Have you considered any alternatives or workarounds?

No response

πŸ“š Any additional context?

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