I see that it is possible to pass arguments to a rake task:
task :task_name, :arg_name do |t, args|
What I'd like to do is pass arguments into a cucumber rake task:
Cucumber::Rake::Task.new({:tags => 'db:test:prepare'}) do |t, args|
t.cucumber_opts = ['--tags', #args?]
end
Is this sort of thing possible? This way I could do:
rake cucumber:tags['tag1', 'tag2', ...]
And have it run only those tags. Most sources say to use an environment variable, which I have done, but I'd prefer to just provide the arguments the "right" way.