behatch/notifiers

此包已被废弃,不再维护。未建议替代包。

Behatch notifiers

1.0.0 2015-04-17 12:29 UTC

This package is auto-updated.

Last update: 2021-04-20 07:51:45 UTC


README

Build Status Scrutinizer Code Quality SensioLabsInsight

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进行通知
    • urltokenroom:campfire配置
    • prefix:标题前缀
    • spamTimeout:两次通知之间的默认时间(60秒)
    • icons:表情符号数组(难过、微笑和错误)
  • Slack - 通过slack进行通知
    • url:Slack webhook url
    • prefix:标题前缀
    • spamTimeout:两次通知之间的默认时间(60秒)
    • settings:Slack消息设置(数组)
    • attachment:Slack消息附件设置(数组)