Socket
Socket
Sign inDemoInstall

nightwatch-slack-reporter

Package Overview
Dependencies
84
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nightwatch-slack-reporter

Notifies Nightwatch.js reports to Slack


Version published
Weekly downloads
307
increased by66.85%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

nightwatch-slack-reporter

Travis CI npm

A Nightwatch.js reporter that notifies results to Slack

Install

npm install --save-dev nightwatch-slack-reporter

Usage

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

Options

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
}

Author

Atsushi Nagase

License

MIT License

Keywords

FAQs

Last updated on 15 Sep 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc