testcafe-reporter-slack-bot

1.0.1 • Public • Published

testcafe-reporter-slack-bot

Build Status

This is the slack-bot reporter plugin for TestCafe.

preview

Requirements

You must register for a slack account and create and configure an app. Go to Slack and follow the instructions. You'll get a token that will need to be put in an .env file in your project root directory in this format:

SLACK_API_TOKEN = {YOUR SLACK API TOKEN HERE}

Install

npm install testcafe-reporter-slack-bot

Usage

When you run tests from the command line, specify the reporter name by using the --reporter option:

testcafe chrome 'path/to/test/file.js' --reporter slack-bot

When you use API, pass the reporter name to the reporter() method:

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('slack-bot') // <-
    .run();

Author

William Estrada

Package Sidebar

Install

npm i testcafe-reporter-slack-bot

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

15.8 kB

Total Files

4

Last publish

Collaborators

  • willy.estrada