Sha256: 08b2b9e1618b83e1a0afdff101bfdeec3d1aa880d895b2d0d50d21b3d34e4025

Contents?: true

Size: 1.32 KB

Versions: 17

Compression:

Stored size: 1.32 KB

Contents

$LOAD_PATH.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib') if File.directory?(RAILS_ROOT + '/vendor/plugins/cucumber/lib')

unless ARGV.any? {|a| a =~ /^gems/}

begin
  require 'cucumber/rake/task'
  namespace :cucumber do
    Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
      t.fork = true # You may get faster startup if you set this to false
      t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}<%= spork? ? ' --drb' : '' %>"
    end

    Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
      t.fork = true # You may get faster startup if you set this to false
      t.cucumber_opts = "--color --tags @wip:2 --wip --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}<%= spork? ? ' --drb' : '' %>"
    end

    desc 'Run all features'
    task :all => [:ok, :wip]
  end
  desc 'Alias for cucumber:ok'
  task :cucumber => 'cucumber:ok'

  task :default => :cucumber

  task :features => :cucumber do
    STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
  end
rescue LoadError
  desc 'cucumber rake task not available (cucumber not installed)'
  task :cucumber do
    abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
  end
end

end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.3.100 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.101.2 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.101 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.102.1 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.102.2 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.102 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.103 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.104 rails_generators/cucumber/templates/cucumber.rake
aslakhellesoy-cucumber-0.3.99 rails_generators/cucumber/templates/cucumber.rake
dwaite-cucumber-0.3.101 rails_generators/cucumber/templates/cucumber.rake
engineyard-cucumber-0.3.101 rails_generators/cucumber/templates/cucumber.rake
cucumber-0.3.104 rails_generators/cucumber/templates/cucumber.rake
cucumber-0.3.103 rails_generators/cucumber/templates/cucumber.rake
cucumber-0.3.102 rails_generators/cucumber/templates/cucumber.rake
cucumber-0.3.101 rails_generators/cucumber/templates/cucumber.rake
cucumber-0.3.100 rails_generators/cucumber/templates/cucumber.rake
cucumber-0.3.99 rails_generators/cucumber/templates/cucumber.rake