Created
April 28, 2021 10:11
-
-
Save marczhermo/6333bfd09c66cf969e21b0366820a8f2 to your computer and use it in GitHub Desktop.
Watcher using inotifywait for running phpunit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Example command | |
# ./phpunitwatch.sh app/tests/Jobs/CityCountryImportJobTest.php | |
# ./phpunitwatch.sh app/tests/Jobs/CityCountryImportJobTest.php --coverage-text | |
while inotifywait -e modify $1 | |
do | |
clear && vendor/bin/phpunit $1 $2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment