Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Behatch/notifiers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Behatch notifiers

Build Status Scrutinizer Code Quality SensioLabsInsight

Behatch notifiers provide notifiers for behat.

Installation

$ composer require "behatch/notifiers"

For Slack notifier, additionally

$ composer require "maknz/slack"

Usage

In behat.yml, enable desired notifier:

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'}

Configuration

  • Desktop - notification through libnotify (notify-send command)
    • spamTimeout: default time between two notifications (60 secondes)
    • icons: array of icons (sad, smile and error)
  • Campfire - notification over campfire
    • url, token, room: campfire configuration
    • prefix: title prefix
    • spamTimeout: default time between two notifications (60 secondes)
    • icons: array of emoticons (sad, smile and error)
  • Slack - notification over slack
    • url: Slack webhook url
    • prefix: title prefix
    • spamTimeout: default time between two notifications (60 secondes)
    • settings: Slack message settings (array)
    • attachment: Slack message attachment settings (array)