Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 757 Bytes
require 'bundler'
require 'bundler/gem_tasks'
require 'rake/testtask'
namespace :test do
Rake::TestTask.new(:units) do |t|
t.libs << "test"
t.pattern = 'test/unit/**/*_test.rb'
t.verbose = true
end
namespace :remote do
Rake::TestTask.new(:all) do |t|
t.libs << "test"
#t.pattern = 'test/remote/*_test.rb'
t.test_files = FileList['test/remote/{ait,endicia,fedex,shipsurance,ups}_test.rb']
t.verbose = true
end
Rake::TestTask.new(:fedex) do |t|
t.libs << "test"
t.test_files = FileList['test/remote/{fedex}_test.rb']
t.verbose = true
end
end
end
desc "Default Task"
task :default => 'test:units'
desc "Run the unit and remote tests"
task :test => ['test:units','test:remote']