Skip to main content

TestRunnerLoader

Loads a TestRunnerAdapter needed to invoke the chosen test runner programmatically.

Index

Constructors

constructor

  • Parameters

    • cwd: Path

      Current working directory; used to resolve glob paths to files for Cucumber.js to require, and instructing Serenity/JS where to look for this module’s optional dependencies, like @serenity-js/cucumber, @serenity-js/mocha, @serenity-js/jasmine, etc.

    • runnerId: string | number

      Unique identifier used to differentiate output files produced by native Cucumber.js formatters. For example, process.pid

    Returns TestRunnerLoader

Methods

forJasmine

  • forJasmine(jasmineNodeOpts: object): TestRunnerAdapter

  • Parameters

    • jasmineNodeOpts: object

    Returns TestRunnerAdapter

forMocha

  • forMocha(mochaOpts: object): TestRunnerAdapter

  • Parameters

    • mochaOpts: object

    Returns TestRunnerAdapter

forCucumber