From 89ad0629e04eeb130b70ac289da343d04a9615f5 Mon Sep 17 00:00:00 2001 From: Wen-Tien Chang Date: Wed, 29 Jun 2011 17:15:55 +0800 Subject: Make "rake test" display not only task name but also exception message. --- railties/lib/rails/test_unit/testing.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index 28dc40379b..f86af7d061 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -79,10 +79,10 @@ task :test do Rake::Task[task].invoke nil rescue => e - task + { :task => task, :exception => e } end end.compact - abort "Errors running #{errors * ', '}!" if errors.any? + abort errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n") if errors.any? end namespace :test do -- cgit v1.2.3