Permalink
Browse files

Simplify use of Cucumber.

  • Loading branch information...
1 parent 41e8561 commit 41d1e04db9f54a42fe4971429861fc0bab58b4a8 @mdub committed Aug 30, 2010
Showing with 14 additions and 9 deletions.
  1. +13 −3 Rakefile
  2. +1 −6 cucumber.yml
View
@@ -10,7 +10,17 @@ task :default => :cucumber
require 'cucumber/rake/task'
-Cucumber::Rake::Task.new(:cucumber) do |t|
- t.fork = true
- t.profile = 'default'
+namespace :cucumber do
+
+ [:wip, :default].each do |profile|
+
+ Cucumber::Rake::Task.new(profile) do |t|
+ t.fork = true
+ t.profile = profile
+ end
+
+ end
+
end
+
+task :cucumber => ["cucumber:wip", "cucumber:default"]
View
@@ -1,7 +1,2 @@
-<%
-rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
-rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
-std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip --require features/support --require features/step_definitions"
-%>
-default: <%= std_opts %>
+default: --tags ~@wip features
wip: --tags @wip:3 --wip features

0 comments on commit 41d1e04

Please sign in to comment.