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
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
Supported parameters
- sl-token - Sealights token
- sl-tokenFile - Path to file contains the Sealights token
- sl-buildSessionId - Sealights build session id
- sl-buildSessionIdFile - Path to file contains the Sealights build session id
- sl-testStage - Test stage current tests are relates to
- sl-labId - Pre-defined Sealights lab-id (optional)
- sl-proxy - Proxy server (optional)
Author
Sealights