Sha256: 4047ac7147676481390330f51e4b241c038b07ddce04927aeed30afedef52826
Contents?: true
Size: 801 Bytes
Versions: 4
Compression:
Stored size: 801 Bytes
Contents
require 'rubygems' require 'bundler' Bundler::GemHelper.install_tasks desc 'Run tests' task default: [:rspec, :cucumber] # Because https://github.com/eventmachine/eventmachine/issues/34 if ENV['TRAVIS'] && RUBY_PLATFORM =~ /java/ # Don't use TLS on JRuby ENV['CUCUMBER_PRO_RESULTS_URL']="ws://results.cucumber.pro/ws" end require 'cucumber/rake/task' Cucumber::Rake::Task.new do |t| t.cucumber_opts = "--format pretty" end task :rspec do sh 'rspec' end desc 'Run repeated tests to check for async bugs' task :soak, :repetitions do |task, args| reps = args[:repetitions] || 10 results = reps.to_i.times.map do `rspec > tmp/test.log` print $? == 0 ? '.' : 'x' $? end num_failed = results.count { |r| r != 0 } fail "#{num_failed}/#{reps} failed" if num_failed > 0 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cucumber-pro-0.0.17 | Rakefile |
cucumber-pro-0.0.16 | Rakefile |
cucumber-pro-0.0.15 | Rakefile |
cucumber-pro-0.0.14 | Rakefile |