diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-27 18:44:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-27 18:44:28 +0000 |
commit | 706a8a8f960572bce1c289cfa7e6a9678fe7f1e1 (patch) | |
tree | b3d40527bdede99c4d4b70ed13db7a70ca4881e7 /railties | |
parent | 727162e7fd56d4d853c755521eb52d42bd70908f (diff) | |
download | rails-706a8a8f960572bce1c289cfa7e6a9678fe7f1e1.tar.gz rails-706a8a8f960572bce1c289cfa7e6a9678fe7f1e1.tar.bz2 rails-706a8a8f960572bce1c289cfa7e6a9678fe7f1e1.zip |
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
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/tasks/misc.rake | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 06c59619d3..79c43bbe3e 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* rake should run functional tests even if the unit tests have failures [Jim Weirich] + * Back off cleanpath to be symlink friendly. Closes #2533 [Nicholas Seckar] * Load rake task files in alphabetical order so you can build dependencies and count on them #2554 [Blair Zajac] 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')) |