diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/testing.rake | 12 |
1 files 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 |