From 74b054a3d1dbac2d7141b5237142fb3eaec8823a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 5 Nov 2011 15:36:38 -0700 Subject: [PATCH] Add a rake task for running acceptance tests --- Rakefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index ed51535c9..c4e0092b1 100644 --- a/Rakefile +++ b/Rakefile @@ -3,11 +3,20 @@ require 'bundler/setup' require 'rake/testtask' Bundler::GemHelper.install_tasks -task :default => :test +task :default => "test:unit" -Rake::TestTask.new do |t| - t.libs << "test/unit" - t.pattern = 'test/unit/**/*_test.rb' +namespace :test do + Rake::TestTask.new do |t| + t.name = "unit" + t.libs << "test/unit" + t.pattern = "test/unit/**/*_test.rb" + end + + Rake::TestTask.new do |t| + t.name = "acceptance" + t.libs << "test/acceptance" + t.pattern = "test/acceptance/**/*_test.rb" + end end namespace :acceptance do