Created
August 7, 2013 12:35
-
-
Save marekkalnik/6173665 to your computer and use it in GitHub Desktop.
My watchr config for PHPUnit Execute by typing:
$ watchr watchr.rb
This file contains 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 ('.*\.php$') {|phpFile| run_php_unit(phpFile)} | |
def run_php_unit(modified_file) | |
system('clear') | |
if (system("phpunit -c phpunit.xml")) | |
system("notify-send 'All test passed'") | |
else | |
system("notify-send 'Test failed'") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment