TestRunnerLoader
Loads a TestRunnerAdapter, needed to invoke the chosen test runner programmatically.
Tests:
Constructor Summary
Public Constructor | ||
public |
constructor(cwd: Path, runnerId: number | string) |
Method Summary
Public Methods | ||
public |
forCucumber(cucumberOpts: CucumberConfig, adapterConfig: CucumberAdapterConfig): TestRunnerAdapter |
|
public |
forJasmine(jasmineNodeOpts: JasmineConfig): TestRunnerAdapter |
|
public |
forMocha(mochaOpts: MochaConfig): TestRunnerAdapter |
Public Constructors
public constructor(cwd: Path, runnerId: number | string) source
Params:
Name | Type | Attribute | Description |
cwd | Path | Current working directory; used to resolve glob paths to files for Cucumber.js to |
|
runnerId | number | string | Unique identifier used to differentiate output files produced by native Cucumber.js formatters.
For example, |
Public Methods
public forCucumber(cucumberOpts: CucumberConfig, adapterConfig: CucumberAdapterConfig): TestRunnerAdapter source
Params:
Name | Type | Attribute | Description |
cucumberOpts | CucumberConfig | ||
adapterConfig | CucumberAdapterConfig |
public forJasmine(jasmineNodeOpts: JasmineConfig): TestRunnerAdapter source
Params:
Name | Type | Attribute | Description |
jasmineNodeOpts | JasmineConfig |
public forMocha(mochaOpts: MochaConfig): TestRunnerAdapter source
Params:
Name | Type | Attribute | Description |
mochaOpts | MochaConfig |