Skip to content

Instantly share code, notes, and snippets.

@rowan-m
Created May 19, 2011 12:10
Show Gist options
  • Save rowan-m/980604 to your computer and use it in GitHub Desktop.
Save rowan-m/980604 to your computer and use it in GitHub Desktop.
Watch existing PHP files in a directory and run phpunit on changes. Requires inotify-tools
#!/bin/bash
while true ; do
inotifywait -qq *.php &&
clear &&
phpunit --colors KataTest.php;
done
@benmatselby
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment