Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
sealights-cucumber-plugin
Advanced tools
sealights-cucumber-plugin
This is the sealights plugin for Cucumber.js.
npm install sealights-cucumber-plugin
Pass path-to-plugin
as require
option of cucumber command
npx cucumber-js ./features ... --require <path-to-plugin>
Or set it in config file
// cucumber.js
module.exports = {
default: {
...
require: [
'./features/support/*',
'<path-to-plugin>',
]
}
};
Note: Usage of --require
option override default definition of path to step definitions.
Pass it explicitly if you don't do it yet. Example:
npx cucumber-js ./features --require ./src/steps/*.steps.ts --require <path-to-plugin>
Resolve path to plugin dynamically
const pathToPlugin = require.resolve('sealights-cucumber-plugin');
import url from 'node:url';
const pluginUrl = import.meta.resolve('sealights-cucumber-plugin');
const pathToPlugin = url.fileURLToPath(new URL(pluginUrl));
Execution of next command allow to resolve path in CLI if node available on machine
Unix:
SL_PACKAGE=$(node -p "require.resolve('sealights-cucumber-plugin')")
PowerShell:
$Env:SL_PACKAGE = node -p "require.resolve('sealights-cucumber-plugin')"
If any of this option don't work for you can use static path to plugin
./node_modules/sealight-cucumber/plugin/tsOutputs/lib/cucumber-integration.js
But it is not recommended and it can be changed.
Pass path-to-plugin
as require
option of cucumber command
cucumberOpts: {
require: [
'./src/steps/*.steps.ts',
'<path-to-plugin>'
]
},
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,
}
!!! Not recommended. This case won`t work in the latest version of cucumber, use file config instead
From the command line add sealights parameters with --sl-
prefix
npx cucumber-js ./features --sl-tokenfile <path/to/token-file> --sl-buildsessionidfile <path/to/buildSessionId-file> --sl-testStage e2e
Sealights
FAQs
Cucumber integration for sealights
We found that sealights-cucumber-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.