Sha256: dc0c628192ab55adac2bb49be10713a03fb929d0c8b515ff1f739672a8ba7486
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
test_runs = if ENV['TESTS'] Interger(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-blogengine-0.2.5 | tasks/floodtest.rake |