Sha256: 8a37abba573b2baecae32b0daedf6ab5451a204833b78309ec852e858929be23

Contents?: true

Size: 703 Bytes

Versions: 8

Compression:

Stored size: 703 Bytes

Contents

require 'cucumber/rake/task'
require 'cucumber/platform'

class Cucumber::Rake::Task
  def set_profile_for_current_ruby
    self.profile = if Cucumber::JRUBY
      Cucumber::WINDOWS ? 'jruby_win' : 'jruby'
    elsif Cucumber::WINDOWS_MRI
      'windows_mri'
    elsif Cucumber::RUBY_1_8_7
      'ruby_1_8_7'
    elsif Cucumber::RUBY_1_9
      'ruby_1_9'
    elsif Cucumber::RUBY_2_0
      'ruby_2_0'
    elsif Cucumber::RUBY_2_1
      'ruby_2_1'
    end
  end
end

Cucumber::Rake::Task.new(:features) do |t|
  t.fork = true
  t.set_profile_for_current_ruby
end

Cucumber::Rake::Task.new(:legacy_features) do |t|
  t.fork = true
  t.profile = :legacy
end

task :cucumber => [:features, :legacy_features]

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/gem_tasks/cucumber.rake
cucumber-1.3.17 gem_tasks/cucumber.rake
cucumber-1.3.16 gem_tasks/cucumber.rake
cucumber-1.3.15 gem_tasks/cucumber.rake
cucumber-1.3.14 gem_tasks/cucumber.rake
cucumber-1.3.13 gem_tasks/cucumber.rake
cucumber-1.3.12 gem_tasks/cucumber.rake
cucumber-1.3.11 gem_tasks/cucumber.rake