Add some more sensible rake tasks for running WIP and stable scenarios

This commit is contained in:
R. Tyler Croy 2012-07-30 03:04:42 -07:00
parent 8d12567846
commit a250cd8191
1 changed files with 15 additions and 3 deletions

View File

@ -11,6 +11,18 @@ Rake::TestTask.new("test") do |t|
t.pattern = "test/selenium/**/*_test.rb"
end
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
end
namespace :cucumber do
desc "Run the 'finished' scenarios (without @wip)"
Cucumber::Rake::Task.new(:ready) do |t|
t.cucumber_opts = "--tags ~@wip --format pretty"
end
desc "Run the scenarios tagged with @wip"
Cucumber::Rake::Task.new(:wip) do |t|
t.cucumber_opts = "--tags @wip --format pretty"
end
end
desc "Defaults to running cucumber:ready"
task :cucumber => "cucumber:ready"