diff --git a/lib/cuke-pack/profiles.rb b/lib/cuke-pack/profiles.rb index 4a14f04..69f259f 100644 --- a/lib/cuke-pack/profiles.rb +++ b/lib/cuke-pack/profiles.rb @@ -32,7 +32,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/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 %> 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