Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
/ slacktestcibot Public archive

Slack bot to monitor karma coverage report

Notifications You must be signed in to change notification settings

barzik/slacktestcibot

Repository files navigation

Slack CI Test bot

Build Status Dependency Status Build status

Slack CI Test bot is a bot for sending karma coverage report format data to team's slack account. The bot will monitor the changes in the karma coverage report file and will notify on the general channel about the changes with additional.

Setup

  • Copy testbot-config.json.sample to testbot-config.json
  • Insert the slack API token in the proper place in the testbot-config.json. You can get the API from https://YOUR-TEAM.slack.com/services/new/bot
  • Insert the location of your karma cover report to karmaCoverFileLocation. The karma cover report must be made by karma runner preprocessor and made in text-summary format. For more information, see Karma Coverage documentation.
  • Insert the location of your git repository to repositoryURL. Slackbot will use it to determine who
  • Change the options if you need any further customization.
    • name - the name of the bot
    • icon_emoji - The emoji of the bot.
    • itemReport - The information to report about (for example, only Line coverage, etc.).
    • reportOnZero - Do not report on items that thier coverage did not changed.
    • insults - Array of insults to say when coverage is down.
    • praises - Array of praises to say when coverage is up.
    • defaultChannel - where to post (default - general).
    • introduction - The intro line that the bot say when he is initiated.
  • run by node index.js.

Test

Use Mocha for unit tests. Run npm test to run the test.

Coverage

Coverage done by Istanbul. Run npm run coverage to get coverage report.

Static code analysis

Done with ESLint. Run npm run eslint to do static code analysis check.

Version

Version 0.01

About

Slack bot to monitor karma coverage report

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published