Skip to content

Instantly share code, notes, and snippets.

@marekkalnik
Created August 7, 2013 12:35
Show Gist options
  • Save marekkalnik/6173665 to your computer and use it in GitHub Desktop.
Save marekkalnik/6173665 to your computer and use it in GitHub Desktop.
My watchr config for PHPUnit Execute by typing: $ watchr watchr.rb
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