Skip to content

Instantly share code, notes, and snippets.

@isidromerayo
Created November 8, 2012 09:54
Show Gist options
  • Save isidromerayo/4037869 to your computer and use it in GitHub Desktop.
Save isidromerayo/4037869 to your computer and use it in GitHub Desktop.
guard phpunit symfon2 to src/Hcuv
guard 'phpunit', :cli => '-c app/ ', :tests_path => 'src',
:keep_failed => true, :all_after_pass => true do
watch(%r{^src/Hcuv/(.+)Tests/.+Test\.php$}) { |m| "#{m[0]}" }
watch(%r{^src/Hcuv/(.+)/(.*)/(.+)\.php$}) { |m| "src/Hcuv/#{m[1]}/Tests/#{m[2]}/#{m[3]}Test.php" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment