TestRunnerLoader
Index
Constructors
Methods
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
See JasmineConfig
Parameters
jasmineNodeOpts: object
Returns TestRunnerAdapter
forMocha
See MochaConfig
Parameters
mochaOpts: object
Returns TestRunnerAdapter
forCucumber
See CucumberConfig
Parameters
cucumberOpts: object
adapterConfig: CucumberAdapterConfig
Returns TestRunnerAdapter
Loads a TestRunnerAdapter needed to invoke the chosen test runner programmatically.