Skip to content

Instantly share code, notes, and snippets.

@everzet
Created April 11, 2012 13:31
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save everzet/2359306 to your computer and use it in GitHub Desktop.
Save everzet/2359306 to your computer and use it in GitHub Desktop.
https://github.com/mynyml/watchr script to continuously run Behat and PHPUnit test suites on classes/features that have been modified.
watch( '(src/.*\.feature)$' ) {|md| system("./console -e=test behat -fprogress #{md[1]}") }
watch( '(src/.*\.php)$' ) {|md| system("phpunit -c app src") }
#!/bin/sh
sudo gem install watchr
watchr watch.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment