Skip to main content

externalCucumberCLIAdapter

Allows for programmatic execution of Cucumber test scenarios.

Learn more

Implements

Index

Constructors

externalconstructor

Methods

externalsuccessThreshold

  • successThreshold(): Outcome | { Code: number }
  • Scenario success threshold for this test runner, calculated based on CucumberConfig


    Returns Outcome | { Code: number }

externalload

  • load(pathsToScenarios: string[]): Promise<void>
  • Loads feature files.


    Parameters

    • externalpathsToScenarios: string[]

      Absolute or relative paths to feature files

    Returns Promise<void>

externalscenarioCount

  • scenarioCount(): number
  • Returns the number of loaded scenarios

    @throws

    LogicError If called before load


    Returns number

externalrun

  • run(): Promise<void>
  • Instructs Cucumber to execute feature files located at pathsToScenarios


    Returns Promise<void>