cucumberjs-slack-bot
v0.0.1
Published
Simple slack notification tool.
Downloads
33
Maintainers
Readme
Protractor/Cucumber Slack Notification Tool
Simple JSON parser and slack notification bot. Designed to be used with a Slack Web API endpoint.
Getting Started
Install Dependencies
npm install
Prerequisites
Designed for a specific use-case. If you are using Protractor with CucumberJS and Slack, you might find this tool useful.
This tool requires a Slack Web API endpoint. Read More
Installing
To use simply require the module:
const slackBot = require('./bot');
Define your Slackbot configuratoin options:
const slackBotOptions = {
githubAccount: '[your account name: string]',
githubRepo: '[your repo name: string]',
cucumberJSON: '[filepath of Protractor JSON output: string]',
slackEndpoint: 'https://hooks.slack.com/services/your/endpoint'
}
Then call the function:
slackBot.newSlackNotification(slackBotOptions);
Built With
- git-repo-info - For git info
- request - For hitting endpoint
- request-promise - Cause promises
Contributing
Submit a PR on the github repo
Authors
- Taylor Buckner - WIP - tabuckner
License
This project is licensed under the MIT License - see the LICENSE.md file for details