Skip to main content

externalMochaAdapter

Allows for programmatic execution of Mocha test scenarios, using SerenityReporterForMocha to report progress.

Learn more

Implements

Index

Constructors

externalconstructor

Methods

externalsuccessThreshold

  • successThreshold(): Outcome | { Code: number }
  • Scenario success threshold for this test runner.


    Returns Outcome | { Code: number }

externalload

  • load(pathsToScenarios: string[]): Promise<void>
  • Loads test scenarios.


    Parameters

    • externalpathsToScenarios: string[]

    Returns Promise<void>

externalscenarioCount

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

    @throws

    LogicError If called before load


    Returns number

externalrun

  • run(): Promise<void>
  • Runs loaded test scenarios.

    @throws

    LogicError If called before load


    Returns Promise<void>