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.
cucumber-caffeinator
Advanced tools
Cucumber.js supercharged with Mocha reporters (both built-in and third-party).
This project is just a plugin (i.e. it does not replace Cucumber.js in any way. In fact, you have to npm install cucumber
prior to cucumber-caffeinator).
$ npm install --save cucumber-caffeinator
Imagine you keep your tests under "test" directory as shown bellow:
test/
features/
support/
world.js
step_definitions/
?.js
...
?.feature
...
Now, depending on how you run cucumber and on the level of coupling you are willing to introduce, you have the following options:
So, for example, if you are running cucumber-js like so
$ cucumber-js test/features
and all you can think of is "nyan" reporter, then type in
$ cucumber-js --require ./node_modules/cucumber-caffeinator/src/index.js --reporter:nyan --require test/features test/features
and hit enter. To switch between different reporters change the value next to "--reporter:" (e.g. --reporter:spec, --reporter:xunit, ...).
Note the addition of "--require test/features". Cucumber's CLI disables automatic scripts loading on "--require", so you have to add that part as well.
In this case world.js might look like:
var caffeinator = require('cucumber-caffeinator');
module.exports = function() {
caffeinator.call(this, {
reporter: process.env.REPORTER || 'spec'
});
...
};
Note that you'll still be able to switch reporters with "--reporter:<mocha's reporter name>". In case of cucumber-js
(or cucumber.js) shell script it's as simple as cucumber-js --reporter:nyan test/features
.
FAQs
Cucumber.js supercharged with Mocha reporters.
The npm package cucumber-caffeinator receives a total of 6 weekly downloads. As such, cucumber-caffeinator popularity was classified as not popular.
We found that cucumber-caffeinator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.