Skip to main content

CucumberCLIAdapter

Allows for programmatic execution of Cucumber test scenarios.

Learn more

Implements

  • TestRunnerAdapter

Index

Constructors

constructor

Methods

successThreshold

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


    Returns Outcome | { Code: number }

load

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


    Parameters

    • pathsToScenarios: string[]

      Absolute or relative paths to feature files

    Returns Promise<void>

scenarioCount

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

    @throws

    LogicError If called before load


    Returns number

run

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


    Returns Promise<void>