Allows sending notifications to various channels i.e.
- Microsoft Teams
- Slack
- Any custom endpoint
This Behat extension integrates with:
Install by adding to your composer.json
:
composer require --dev marcelovani/behat-notifier
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'
notifiers
: The list of classes that can listen to Behat Notifier eventsscreenshotExtension
(optional): The name of the extension to be used to take screenshots.
- Add example Features and Unit tests
- Add Github actions
- List package on https://packagist.org/