Sha256: 41d46640d29c81af4e8b5f34b2d41719de2479c7819a513e2c7f589b02b6f42a

Contents?: true

Size: 885 Bytes

Versions: 3

Compression:

Stored size: 885 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

3 entries across 3 versions & 1 rubygems

Version Path
rack-blogengine-1.0.0 tasks/floodtest.rake
rack-blogengine-0.2.7 tasks/floodtest.rake
rack-blogengine-0.2.6 tasks/floodtest.rake