forked from rubyjedi/soap4r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
43 lines (35 loc) · 1.5 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
require 'rake/gempackagetask'
require 'rake/testtask'
task :default => 'test:deep'
## ---------------------------------------------------------------------------------------------------- ##
## Gem Packaging
## ---------------------------------------------------------------------------------------------------- ##
load 'soap4r.gemspec'
Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
## ---------------------------------------------------------------------------------------------------- ##
## Unit Testing
## run against the soap4r library for the given Comma-Separated List of Test Scopes.
## rake test:deep [SCOPE=soap,wsdl,...]
## Also accepts WARNINGS and VERBOSE as environment variables to control the level of debugging output.
## ---------------------------------------------------------------------------------------------------- ##
namespace :test do
desc 'Run the complete set of tests' #
Rake::TestTask.new(:deep) do |t|
test_scope = ENV['SCOPE'] || '*'
t.test_files = FileList[ test_scope.split(',').collect{|scope| "test/#{scope}/**/test_*.rb"} ]
t.warning = !!ENV['WARNINGS']
t.verbose = !!ENV['VERBOSE']
t.libs << 'test'
end
desc 'Run the minimum set of tests'
Rake::TestTask.new(:surface) do |t|
test_scope = ENV['SCOPE'] || '*'
t.test_files = FileList[ test_scope.split(',').collect{|scope| "test/#{scope}/test_*.rb"} ]
t.warning = !!ENV['WARNINGS']
t.verbose = !!ENV['VERBOSE']
t.libs << 'test'
end
end