Skip to content

Instantly share code, notes, and snippets.

@paneq
Created July 1, 2011 11:43
Show Gist options
  • Save paneq/1058372 to your computer and use it in GitHub Desktop.
Save paneq/1058372 to your computer and use it in GitHub Desktop.
rails
desc 'Runs test:units, test:functionals, test:integration together (also available: test:benchmark, test:profile, test:plugins)'
task :test do
errors = %w(test:units test:functionals test:integration).collect do |task|
begin
Rake::Task[task].invoke
nil
rescue => e
task
end
end.compact
abort "Errors running #{errors * ', '}!" if errors.any?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment