nightwatch-slack-reporter
Advanced tools
Weekly downloads
Readme
A Nightwatch.js reporter that notifies results to Slack
npm install --save-dev nightwatch-slack-reporter
Using Built in Nightwatch reporter
// globals.js
module.exports = {
reporter: (require('nightwatch-slack-reporter')(options))
}
Using Command Line Options
nightwatch --reporter node_modules/nightwatch-slack-reporter/lib/reporter.js
You can configure Slack reporter options in test globals or configuration file.
options = {
slack_message: function(results, options) { // function or message string
return {
text: 'Test completed, passed ' + results.passed + ', failed ' + results.failed,
username: 'Nightwatch',
icon_emoji: ':ghost:'
} // Message payload or string
},
slack_webhook_url: 'https://hooks.slack.com/services/...'
// This can be specified with SLACK_WEBHOOK_URL environment variable
}
FAQs
Notifies Nightwatch.js reports to Slack
The npm package nightwatch-slack-reporter receives a total of 130 weekly downloads. As such, nightwatch-slack-reporter popularity was classified as not popular.
We found that nightwatch-slack-reporter 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.