forked from waynerobinson/xeroizer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
37 lines (32 loc) · 850 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
36
37
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'rubygems'
require 'yard'
require 'bundler/gem_tasks'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the xero gateway.'
Rake::TestTask.new(:test) do |t|
t.libs << ['lib', 'test']
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
namespace :test do
desc 'Run acceptance/integration tests'
Rake::TestTask.new(:acceptance) do |t|
t.libs << ['lib', 'test']
t.pattern = 'test/acceptance/**/*_test.rb'
t.verbose = true
end
desc 'Run unit tests'
Rake::TestTask.new(:unit) do |t|
t.libs << ['lib', 'test']
t.pattern = 'test/unit/**/*_test.rb'
t.verbose = true
end
end
YARD::Rake::YardocTask.new do |t|
# t.files = ['lib/**/*.rb', OTHER_PATHS] # optional
# t.options = ['--any', '--extra', '--opts'] # optional
end