forked from Shopify/active_shipping
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
35 lines (30 loc) · 751 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'bundler/gem_tasks'
require 'rake/testtask'
desc "Run the unit and functional remote tests"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.pattern = 'test/**/*_test.rb'
t.verbose = true
t.warning = false
end
namespace :test do
desc "Run unit tests"
Rake::TestTask.new(:unit) do |t|
t.libs << "test"
t.pattern = 'test/unit/**/*_test.rb'
t.verbose = true
t.warning = false
end
desc "Run functional remote tests"
Rake::TestTask.new(:remote) do |t|
t.libs << "test"
t.pattern = 'test/remote/*_test.rb'
t.verbose = true
t.warning = false
end
end
desc "Open a pry session preloaded with this library"
task :console do
sh 'ruby -Ilib -Itest test/console.rb'
end
task :default => 'test'