-
Notifications
You must be signed in to change notification settings - Fork 71
/
Rakefile
49 lines (38 loc) · 1.67 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
require 'rake/testtask'
task :default => 'test:deep'
## ---------------------------------------------------------------------------------------------------- ##
## Gem Packaging
## ---------------------------------------------------------------------------------------------------- ##
load 'soap4r-ng.gemspec'
## ---------------------------------------------------------------------------------------------------- ##
## 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
desc 'Run a single test by specifying its filename within "test/**/test_*.rb"'
Rake::TestTask.new(:single) do |t|
test_file = ARGV[1]
t.test_files = FileList[ test_file ]
t.warning = !!ENV['WARNINGS']
t.verbose = !!ENV['VERBOSE']
t.libs << 'test'
end
end