Last active
December 18, 2015 14:29
-
-
Save asm89/5797852 to your computer and use it in GitHub Desktop.
Rerun PHPUnit on file changes in a given dir (defined in my .bashrc)
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
# watch files and rerun phpunit on changes | |
phpunitwait() { | |
while inotifywait $(find $1 -name '*.php'); | |
do | |
clear; | |
phpunit --colors $2; | |
done; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cordoval make a small wrapper SH script and drop it in your
/usr/local/bin