bintz-integration_testing_s.../skel/root/lib/tasks/cucumber.rake

25 lines
553 B
Ruby
Raw Permalink Normal View History

2013-01-26 00:01:49 +00:00
# cuke-pack rake task
#
begin
require 'cucumber/rake/task'
namespace :cucumber do
Cucumber::Rake::Task.new(:ok, 'Run all features') do |t|
t.profile = 'default'
end
Cucumber::Rake::Task.new(:precommit, 'Only run features that should be tested before committing') do |t|
t.profile = 'precommit'
end
Cucumber::Rake::Task.new(:wip, 'Only run features being worked on') do |t|
t.profile = 'wip'
end
end
task :cucumber => 'cucumber:precommit'
rescue LoadError
$stderr.puts "no cucumber, skipping"
end