From 706a8a8f960572bce1c289cfa7e6a9678fe7f1e1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 27 Oct 2005 18:44:28 +0000 Subject: rake should run functional tests even if the unit tests have failures [Jim Weirich] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/tasks/misc.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'railties/lib/tasks/misc.rake') diff --git a/railties/lib/tasks/misc.rake b/railties/lib/tasks/misc.rake index 713f622547..60dc2e21d2 100644 --- a/railties/lib/tasks/misc.rake +++ b/railties/lib/tasks/misc.rake @@ -1,5 +1,9 @@ desc "Run all the tests on a fresh test database" -task :default => [ :test_units, :test_functional ] +task :default do + Rake::Task[:test_units].invoke rescue got_error = true + Rake::Task[:test_functional].invoke rescue got_error = true + raise "Test failures" if got_error +end task :environment do require(File.join(RAILS_ROOT, 'config', 'environment')) -- cgit v1.2.3