sealights-cucumber-plugin
This is the sealights plugin for Cucumber.js.
Install
npm install sealights-cucumber-plugin
Usage
Require this package using --require
argument to the cucumber command
node_modules/.bin/cucumber-js ./features --require sealights-cucumber-plugin
Usage in protractor.conf
Require this package using --require
argument to the cucumber command
cucumberOpts: {
require: [
'./src/steps/*.steps.ts',
require.resolve('sealights-cucumber-plugin')
]
},
Passing parameters to reporter via CLI
From the command line add sealights parameters with '--sl-' prefix
protractor protractor.conf.js --sl-tokenfile <path/to/token-file> --sl-buildsessionidfile <path/to/buildSessionId-file> --sl-testStage e2e
Passing parameters to plugin via config file
Create a file sl.conf
and fill it with config in JSON format
{
tokenfile: <path/to/token-file>,
buildsessionidfile: <path/to/buildSessionId-file>,
testStage: e2e,
}
Supported parameters
- token - Sealights token
- tokenFile - Path to file contains the Sealights token
- buildSessionId - Sealights build session id
- buildSessionIdFile - Path to file contains the Sealights build session id
- testStage - Test stage current tests are relates to
- labId - Pre-defined Sealights lab-id (optional)
- proxy - Proxy server (optional)
Author
Sealights