Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make test task run all tests, even if some fail
  • Loading branch information
Jeremy Stephens committed Jul 12, 2011
1 parent 1f59866 commit 1d46703
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tasks/test.rake
@@ -1,7 +1,17 @@
require 'rake/testtask'

desc "Run all tests"
task :test => ['test:unit', 'test:integration']
task :test do
errors = %w(test:unit test:functional 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

namespace :test do
Rake::TestTask.new(:unit) do |test|
Expand Down

0 comments on commit 1d46703

Please sign in to comment.