From cf7935bc3e0f179cc29f30097b10c36ef8a9b6b2 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 5 Aug 2010 16:32:10 -0300 Subject: [PATCH] Run all test tasks on `rake test` (and `rake`) --- lib/tasks/test.rake | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index 4d67e0c..d0cd0c4 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -1,4 +1,16 @@ -task :default => [:test, :cucumber, :selenium] +Rake::Task[:test].clear + +task :test do + errors = %w(test:units test:functionals test:integration cucumber selenium).collect do |task| + begin + Rake::Task[task].invoke + nil + rescue => e + task + end + end.compact + abort "Errors running #{errors.to_sentence}!" if errors.any? +end desc 'Runs Seleniun acceptance tests' task :selenium do -- libgit2 0.21.2