Sha256: 709cfe780029ba19c897a7720af25e0eb52ae8b310a481d4345e2f1e0fcd9a97

Contents?: true

Size: 945 Bytes

Versions: 3

Compression:

Stored size: 945 Bytes

Contents

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

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

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

  # desc 'Run Feature floodtest (default 30 tests, configurable via ENV["TESTS"])'
  # task :feature do
    # 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

3 entries across 3 versions & 1 rubygems

Version Path
rack-simple_auth-1.0.0rc task/floodtest.rake
rack-simple_auth-0.1.4 task/floodtest.rake
rack-simple_auth-0.1.3 task/floodtest.rake