提交 89cb34c9 编写于 作者: M Michael Koziarski

Stop swallowing errors during rake test [Koz]


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 772e02dd
*SVN*
* Stop swallowing errors during rake test [Koz]
* Update Rails Initializer to use ActionController::Base#view_paths [Rick]
* Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
......
......@@ -40,14 +40,17 @@ end
desc 'Test all units and functionals'
task :test do
Rake::Task["test:units"].invoke rescue got_error = true
Rake::Task["test:functionals"].invoke rescue got_error = true
exceptions = ["test:units", "test:functionals", "test:integration"].collect do |task|
begin
Rake::Task[task].invoke
nil
rescue => e
e
end
end.compact
if File.exist?("test/integration")
Rake::Task["test:integration"].invoke rescue got_error = true
end
raise "Test failures" if got_error
exceptions.each {|e| puts e;puts e.backtrace }
raise "Test failures" unless exceptions.empty?
end
namespace :test do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册