Repository navigation
Expand file tree
/
Copy pathRakefile
More file actions
61 lines (49 loc) · 2.26 KB
/
Copy pathRakefile
File metadata and controls
61 lines (49 loc) · 2.26 KB
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
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
# Deliberately lives outside test/**/test_*.rb (see
# test_ws_security_e2e/README.md) so it's never picked up by
# test:deep/test:surface's own globs, regardless of SCOPE -- these need a
# live, self-hosted WS-Security test server, not just local fixtures.
desc 'Run the WS-Security e2e tests against a live WSS4J/XWSS test server -- see test_ws_security_e2e/README.md'
Rake::TestTask.new(:ws_security_e2e) do |t|
t.test_files = FileList['test_ws_security_e2e/test_*.rb']
t.warning = !!ENV['WARNINGS']
t.verbose = !!ENV['VERBOSE']
t.libs << 'test' << 'test_ws_security_e2e'
end
end