-
-
Save anonymous/c6bd038dfd099d2adc3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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