From d54a1564a1f70351fc23649641a92617e7f55c9d Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 11 Sep 2007 05:19:15 +0000 Subject: Don't raise superfluous exception on test failure. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/tasks/testing.rake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index b9df35c6b4..e60f961347 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -40,17 +40,17 @@ end desc 'Test all units and functionals' task :test do - exceptions = ["test:units", "test:functionals", "test:integration"].collect do |task| + %w(test:units test:functionals test:integration).collect do |task| begin Rake::Task[task].invoke nil rescue => e - e + e unless e.message.starts_with?('Command failed with status (1)') end - end.compact - - exceptions.each {|e| puts e;puts e.backtrace } - raise "Test failures" unless exceptions.empty? + end.compact.each do |e| + puts e + puts " #{e.backtrace * " \n"}" + end end namespace :test do -- cgit v1.2.3