Skip to content

Instantly share code, notes, and snippets.

@ratacibernetica
Created October 23, 2019 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratacibernetica/264ea1130d344b25b2d4c2e0026b0bce to your computer and use it in GitHub Desktop.
Save ratacibernetica/264ea1130d344b25b2d4c2e0026b0bce to your computer and use it in GitHub Desktop.
phpunit run automatically with inotifywait (linux)
#!/bin/bash
while true; do
FILE=$(inotifywait tests/*/*.php --format="%w%f" ) &&
clear &&
vendor/bin/phpunit --color $FILE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment