/behat-notifier

Allows sending notifications from Behat to various channels i.e. Microsoft Teams, Slack, Email

Primary LanguagePHPMIT LicenseMIT

Behat Notifier Extension

Allows sending notifications to various channels i.e.

  • Microsoft Teams
  • Slack
  • Email
  • Any custom endpoint

This Behat extension integrates with:

Installation

Install by adding to your composer.json:

composer require --dev marcelovani/behat-notifier

Configuration

Enable the extension in behat.yml like this:

The configuration goes in the Marcelovani\Behat\Notifier extension, under notifiers

default:
  extensions:
    Marcelovani\Behat\Notifier:
      # See https://github.com/marcelovani/behat-screenshot
      screenshotExtension: Bex\Behat\ScreenshotExtension
      notifiers:
        # See https://github.com/marcelovani/behat-email-notifier
        Marcelovani\Behat\Notifier\Teams\EmailNotifier:
          recipients:
          - email1@foo.bar
          - email2@foo.bar
        # See https://github.com/marcelovani/behat-teams-notifier
        Marcelovani\Behat\Notifier\Teams\TeamsNotifier:
          webhook: 'https://www.foo.bar'

Available options

  • notifiers: The list of classes that can listen to Behat Notifier events
  • screenshotExtension (optional): The name of the extension to be used to take screenshots.

Todo