forked from AppScale/gts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
74 lines (48 loc) · 1.73 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
65
66
67
68
69
70
71
72
73
74
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/testtask'
require 'rcov/rcovtask'
namespace :appcontroller do
APPCONTROLLER_TEST_SUITE = "AppController/test/ts_all.rb"
desc "Generates AppController code coverage statistics"
Rcov::RcovTask.new(:coverage) { |t|
t.test_files = FileList[APPCONTROLLER_TEST_SUITE]
t.output_dir = "AppController/coverage"
t.rcov_opts << "-x #{APPCONTROLLER_TEST_SUITE} -x ~/.rvm -x /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb"
}
desc "Generates AppController rdoc"
Rake::RDocTask.new(:doc) { |rd|
rd.rdoc_files.include("AppController/djinn.rb",
"AppController/djinnServer.rb", "AppController/lib")
rd.rdoc_dir = "AppController/doc"
}
desc "Runs AppController unit tests"
Rake::TestTask.new("test") do |t|
t.pattern = APPCONTROLLER_TEST_SUITE
t.verbose = true
t.warning = false
end
end
namespace :neptunemanager do
NEPTUNE_TEST_SUITE = "Neptune/test/ts_all.rb"
desc "Generates NeptuneManager code coverage statistics"
Rcov::RcovTask.new(:coverage) { |t|
t.test_files = FileList[NEPTUNE_TEST_SUITE]
t.output_dir = "Neptune/coverage"
t.rcov_opts << "-x #{NEPTUNE_TEST_SUITE} -x ~/.rvm -x /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb"
}
desc "Generates NeptuneManager rdoc"
Rake::RDocTask.new(:doc) { |rd|
rd.rdoc_files.include("Neptune/neptune_manager.rb",
"Neptune/neptune_manager_server.rb", "Neptune/lib")
rd.rdoc_dir = "Neptune/doc"
}
desc "Runs NeptuneManager unit tests"
Rake::TestTask.new("test") { |t|
t.pattern = 'Neptune/test/ts_all.rb'
t.verbose = true
t.warning = false
}
end
task :default => ['appcontroller:test', 'neptunemanager:test']