Sha256: bb460c93754688ac1d9c035a5638f3209b6d44e1f9f453ec1e28149e9a81ea12

Contents?: true

Size: 1.25 KB

Versions: 5

Compression:

Stored size: 1.25 KB

Contents

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

import 'lib/soap/ci.rake'
RSpec::Core::RakeTask.new
require 'rake/testtask'

task :default => 'test:deep'

## ---------------------------------------------------------------------------------------------------- ##
## Unit Testing
## run against the soap5r 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 Rakefile
soap5r-2.0.2 Rakefile
soap5r-2.0.1 Rakefile
soap5r-2.0.0 Rakefile
soap5r-2.0.0.20120130130121 Rakefile