Permalink
Browse files

Make "rake test" display not only task name but also exception message.

  • Loading branch information...
1 parent 3153685 commit 89ad0629e04eeb130b70ac289da343d04a9615f5 @ihower committed Jun 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 89ad062

Please sign in to comment.