From 722cf66e0d0fff993a03fa0b0a8b0d474fa63c6b Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 16 Feb 2013 18:15:15 -0500 Subject: [PATCH 1/2] actually use the new stuff in the profile --- skel/config/cucumber.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/skel/config/cucumber.yml b/skel/config/cucumber.yml index 9b29335..917d185 100644 --- a/skel/config/cucumber.yml +++ b/skel/config/cucumber.yml @@ -1,12 +1,2 @@ -<% -std_opts = "--color -r features --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} -f Cucumber::StepWriter --out features/step_definitions --strict" -%> -default: <%= std_opts %> features -wip: <%= std_opts %> --tags @wip features -precommit: <%= std_opts %> --tags ~@wip:0 --tags ~@no-precommit features - -# or enable FAILFAST to have your tests end immediately on failure -#precommit: FAILFAST=true <%= std_opts %> --tags ~@wip:0 features - -cleanup: <%= std_opts %> -f Cucumber::CleanupFormatter --out unused.txt features +<%= require 'cuke-pack/profiles' ; CukePack::Profiles.write %> From 0577bf792904cb19345f2ef5f0e8772fbd190dd9 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 17 Feb 2013 09:53:10 -0500 Subject: [PATCH 2/2] forgot this --- lib/cuke-pack/profiles.rb | 2 +- skel/features/support/cuke-pack.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cuke-pack/profiles.rb b/lib/cuke-pack/profiles.rb index 9e16cec..ddd1598 100644 --- a/lib/cuke-pack/profiles.rb +++ b/lib/cuke-pack/profiles.rb @@ -30,7 +30,7 @@ module CukePack <<-YML default: #{headless_opts} features wip: #{wip_opts} -precommit: #{headless_opts} --tags ~@wip:0 features +precommit: #{headless_opts} --tags ~@no-precommit --tags ~@wip:0 features cleanup: #{headless_opts} -f Cucumber::CleanupFormatter --out unused.txt features YML end diff --git a/skel/features/support/cuke-pack.rb b/skel/features/support/cuke-pack.rb index badb595..a025c6d 100644 --- a/skel/features/support/cuke-pack.rb +++ b/skel/features/support/cuke-pack.rb @@ -7,6 +7,9 @@ require 'cuke-pack/support/step_writer' # fail instantly if ENV['FAILFAST'] is set require 'cuke-pack/support/failfast' +# use advanced in_progress mode +require 'cuke-pack/support/in_progress' + # set the level of flaying on the step definitions # set it to false to skip flaying flay_level = 32