Skip to content

Instantly share code, notes, and snippets.

/Rakefile Secret

Created January 15, 2015 15:28
Show Gist options
  • Save anonymous/c6bd038dfd099d2adc3d to your computer and use it in GitHub Desktop.
Save anonymous/c6bd038dfd099d2adc3d to your computer and use it in GitHub Desktop.
require 'cucumber'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new :features
task :default => [:features]
task :first_half do
puts 'test'
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = Dir.glob('features/**/*.feature').select.each_with_index { |file, i| i.even? }.join(" ")
end
end
task :second_half do
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = Dir.glob('features/**/*.feature').select.each_with_index { |file, i| i.odd? }.join(" ")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment