Sha256: 580056a5e9b6fb803c2fde1b6b5c956c0b00720c6f7760631a82d9342aa9641b

Contents?: true

Size: 1.16 KB

Versions: 12

Compression:

Stored size: 1.16 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 = "--tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
    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 = "--tags @wip:2 --wip --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
    end

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

  task :features => 'cucumber:ok' 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

12 entries across 12 versions & 1 rubygems

Version Path
muck-friends-0.1.17 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.16 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.15 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.14 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.13 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.12 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.11 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.10 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.6 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.7 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.8 test/rails_root/lib/tasks/cucumber.rake
muck-friends-0.1.9 test/rails_root/lib/tasks/cucumber.rake