behatch / notifiers
此包已被废弃,不再维护。未建议替代包。
Behatch notifiers
1.0.0
2015-04-17 12:29 UTC
Requires
- php: >=5.4
- behat/behat: ~3.0
Requires (Dev)
- behat/mink-goutte-driver: ~1.1
- behatch/contexts: dev-master
- kherge/box: ~2.0
This package is auto-updated.
Last update: 2021-04-20 07:51:45 UTC
README
Behatch notifiers为behat提供通知功能。
安装
$ composer require "behatch/notifiers"
对于Slack通知器,还需要
$ composer require "maknz/slack"
用法
在behat.yml
中启用所需的通知器
default: suites: default: contexts: - Behatch\Notifier\Desktop - Behatch\Notifier\Campfire url: https://sample.campfirenow.com token: 605b32dd room: 1 - Behatch\Notifier\Slack url: https://hooks.slack.com/services/some-long/hook-url/goes-here spamTimeout: '10' prefix: 'Message Prefix' settings: {username: BehatBot, channel: '#general'}
配置
Desktop
- 通过libnotify(notify-send
命令)进行通知spamTimeout
:两次通知之间的默认时间(60秒)icons
:图标数组(难过、微笑和错误)
Campfire
- 通过campfire进行通知url
、token
、room
:campfire配置prefix
:标题前缀spamTimeout
:两次通知之间的默认时间(60秒)icons
:表情符号数组(难过、微笑和错误)
Slack
- 通过slack进行通知url
:Slack webhook urlprefix
:标题前缀spamTimeout
:两次通知之间的默认时间(60秒)settings
:Slack消息设置(数组)attachment
:Slack消息附件设置(数组)