# encoding: UTF-8 begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end Bundler::GemHelper.install_tasks require 'rspec/core' require 'rspec/core/rake_task' Rspec::Core::RakeTask.new(:spec) require 'cucumber/rake/task' namespace :cucumber do Cucumber::Rake::Task.new(:ok, 'Run features that should pass') do |t| t.fork = true # You may get faster startup if you set this to false t.profile = 'default' end Cucumber::Rake::Task.new(:wip, 'Run features that are being worked on') do |t| t.fork = true # You may get faster startup if you set this to false t.profile = 'wip' end Cucumber::Rake::Task.new(:rerun, 'Record failing features and run only them if any exist') do |t| t.fork = true # You may get faster startup if you set this to false t.profile = 'rerun' end desc 'Run all features' task :all => [:ok, :wip] end desc 'Alias for cucumber:ok' task :cucumber => 'cucumber:ok' task :default => :cucumber