Sha256: 710e2926c85baa6cad1d30e584fe9fa41938f4b98be6f0a18953061b9c0586e1

Contents?: true

Size: 911 Bytes

Versions: 18

Compression:

Stored size: 911 Bytes

Contents

test_runs = if ENV['TESTS']
              Integer(ENV['TESTS'])
            else
              30
            end

namespace :floodtest do
  task :unit do
    desc 'Run Unit floodtest (default 30 tests, configurable via ENV["TESTS"])'
    1.upto(test_runs) do |i|
      puts "Running test #{i} of #{test_runs}"
      exit(-1) if !system('bundle exec rake test:unit')
    end
  end

  # task :spec do
    # desc 'Run Spec floodtest (default 30 tests, configurable via ENV["TESTS"])'
    # 1.upto(test_runs) do |i|
      # puts "Running test #{i} of #{test_runs}"
      # exit(-1) if !system('bundle exec rake test:spec ')
    # end
  # end

  # task :feature do
    # desc 'Run Feature floodtest (default 30 tests, configurable via ENV["TESTS"])'
    # 1.upto(test_runs) do |i|
      # puts "Running test #{i} of #{test_runs}"
      # exit(-1) if !system('bundle exec rake test:feature')
    # end
  # end
end


Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
rack-simple_auth-0.1.1 task/floodtest.rake
rack-blogengine-1.0.7 task/floodtest.rake
rack-simple_auth-0.1.0 task/floodtest.rake
rack-blogengine-1.0.6 task/floodtest.rake
rack-blogengine-1.0.5 task/floodtest.rake
rack-blogengine-1.0.4 task/floodtest.rake
rack-blogengine-1.0.3 task/floodtest.rake
rack-simple_auth-0.0.9 task/floodtest.rake
rack-blogengine-1.0.2 task/floodtest.rake
rack-simple_auth-0.0.8 task/floodtest.rake
rack-simple_auth-0.0.7 task/floodtest.rake
rack-blogengine-1.0.1 task/floodtest.rake
rack-simple_auth-0.0.6 task/floodtest.rake
rack-simple_auth-0.0.5 task/floodtest.rake
rack-simple_auth-0.0.4 task/floodtest.rake
rack-simple_auth-0.0.3 tasks/floodtest.rake
rack-simple_auth-0.0.2 tasks/floodtest.rake
rack-simple_auth-0.0.1 tasks/floodtest.rake