Sha256: 60d95103109fd8637d2f7363b594288e385daa03ffbaab13bca3e0fcd23be91e

Contents?: true

Size: 672 Bytes

Versions: 14

Compression:

Stored size: 672 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rake/clean'

ENV['folder'] ||= ''
ENV['test'] ||= ''

desc 'Run tests'
RSpec::Core::RakeTask.new(spec: %i[clean clobber start_test_server]) do |t|
  t.pattern = "spec/**/#{ENV['folder']}*/#{ENV['test']}*_spec.rb"
end

task default: :spec

CLEAN.include 'tmp/*'
CLOBBER.include 'logs/*'

desc 'Start virtual web service'
task :start_test_server do
  mkdir_p 'logs'
  ENV['test_server_pid'] = Process.spawn('ruby', 'exe/soaspec-virtual-server', err: %w[logs/test_server.log w]).to_s
  sleep 2 # Wait a little for virtual server to start up
  puts 'Running test server at pid ' + ENV['test_server_pid']
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
soaspec-0.1.8 Rakefile
soaspec-0.1.7 Rakefile
soaspec-0.1.5 Rakefile
soaspec-0.1.4 Rakefile
soaspec-0.1.3 Rakefile
soaspec-0.1.2 Rakefile
soaspec-0.1.0 Rakefile
soaspec-0.0.89 Rakefile
soaspec-0.0.87 Rakefile
soaspec-0.0.86 Rakefile
soaspec-0.0.84 Rakefile
soaspec-0.0.81 Rakefile
soaspec-0.0.80 Rakefile
soaspec-0.0.79 Rakefile