odino / phpunit-notifications
A shell script to get desktop notifications after PHPUnit has run.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 0
Language:Shell
This package is not auto-updated.
Last update: 2024-11-04 15:16:08 UTC
README
Thanks to the notify-send
utility this script
lets you send a desktop notification once PHPUnit tests
are done, outputting whether they ran succesfully or not.
Installation
Just clone this repository anywhere, then modify your shell profile file by adding:
source /path/to/phpunit-notifications/phpunit-notifications.sh
Make sure the script is executable:
chmod +x /path/to/phpunit-notifications/phpunit-notifications.sh
Usage
This script assumes that you have PHPUnit installed
via composer in your vendor
directory, so that the PHPUnit
binary is locate at ./vendor/bin/phpunit
.
To use it, just run the PHPUnit tests by replacing ./vendor/bin/phpunit
with a simple phpunit
:
phpunit
// or
php -c config
// or
phpunit tests/My/ClassTest.php