mdarse / phpunit-notifier
Desktop notifications for PHPUnit
Installs: 2 213
Dependents: 3
Suggesters: 0
Security: 0
Stars: 31
Watchers: 2
Forks: 5
Open Issues: 0
Requires
- jolicode/jolinotif: ~1.0
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-09 18:01:15 UTC
README
Use composer to install on your project:
$ composer require --dev "mdarse/phpunit-notifier"
To set up, just register PHPUnitNotifier\NotifierListener
in the listeners section of you phpunit.xml
.
Example of PHPUnit XML configuration:
<?xml version="1.0" encoding="UTF-8"?> <phpunit> <testsuites> <testsuite name="Test Suite"> <directory>tests</directory> </testsuite> </testsuites> <listeners> <listener class="PHPUnitNotifier\NotifierListener"></listener> </listeners> </phpunit>
There is no supported mean to globally setup the notifier for every project, but here is a dirty workaround.