Created
March 27, 2013 15:26
-
-
Save jerel/5255082 to your computer and use it in GitHub Desktop.
Watch for changes using guard and run corresponding test
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
guard 'phpunit', :tests_path => 'tests', :cli => '--colors --bootstrap tests/bootstrap.php --strict --debug --verbose' do | |
# Watch test files | |
watch(%r{^.+Test\.php$}) | |
# Watch library files and run their tests | |
watch(%r{^core/(.+)\.php}) { |m| "tests/core/#{m[1]}_Test.php" } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment