import {TestRunnerLoader} from '@serenity-js/protractor/lib/adapter/runner'
public class | source

TestRunnerLoader

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

Constructor Summary

Public Constructor
public

constructor(cwd: Path, runnerId: number | string)

Method Summary

Public Methods
public
public
public

Public Constructors

public constructor(cwd: Path, runnerId: number | string) source

Params:

NameTypeAttributeDescription
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 number | string

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

Public Methods

public forCucumber(cucumberOpts: CucumberConfig, adapterConfig: CucumberAdapterConfig): TestRunnerAdapter source

Params:

NameTypeAttributeDescription
cucumberOpts CucumberConfig
adapterConfig CucumberAdapterConfig

public forJasmine(jasmineNodeOpts: JasmineConfig): TestRunnerAdapter source

Params:

NameTypeAttributeDescription
jasmineNodeOpts JasmineConfig

public forMocha(mochaOpts: MochaConfig): TestRunnerAdapter source

Params:

NameTypeAttributeDescription
mochaOpts MochaConfig