-
Notifications
You must be signed in to change notification settings - Fork 43
/
Rakefile
64 lines (50 loc) · 1.45 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
require 'rubygems'
require 'rake'
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
Bundler::GemHelper.install_tasks
require 'rake/testtask'
require 'yard'
task :default => ["test", "yard"]
Rake::TestTask.new('test') do |t|
t.description = "Run all Test::Unit tests"
t.libs << ['lib', 'test/client', 'test/provider', 'test/activerecord_provider']
t.pattern = 'test/{client,provider,activerecord_provider}/tc_*.rb'
#t.verbose = true
t.warning = false
end
# To run just subsets of tests
namespace :test do
Rake::TestTask.new('client') do |t|
t.libs << ['lib', 'test/client']
t.pattern = 'test/client/tc_*.rb'
#t.verbose = true
t.warning = false
end
Rake::TestTask.new('harvester') do |t|
t.libs << ['lib', 'test/harvester']
t.pattern = 'test/harvester/tc_*.rb'
#t.verbose = true
t.warning = false
end
Rake::TestTask.new('provider') do |t|
t.libs << ['lib', 'test/provider']
t.pattern = 'test/provider/tc_*.rb'
#t.verbose = true
t.warning = false
end
Rake::TestTask.new('activerecord_provider') do |t|
t.description = "Active Record base Provider Tests"
t.libs << ['lib', 'test/activerecord_provider']
t.pattern = 'test/activerecord_provider/tc_*.rb'
#t.verbose = true
t.warning = false
end
end
YARD::Rake::YardocTask.new do |t|
t.files = ["lib/**/*.rb"]
t.options = ['--output-dir', 'doc']
end