Merge branch 'master' of github.com:johnbintz/cuke-pack

This commit is contained in:
John Bintz 2013-02-18 15:24:47 -05:00
commit a7a1e06597
3 changed files with 5 additions and 12 deletions

View File

@ -32,7 +32,7 @@ module CukePack
<<-YML <<-YML
default: #{headless_opts} features default: #{headless_opts} features
wip: #{wip_opts} 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 cleanup: #{headless_opts} -f Cucumber::CleanupFormatter --out unused.txt features
YML YML
end end

View File

@ -1,12 +1,2 @@
<% <%= require 'cuke-pack/profiles' ; CukePack::Profiles.write %>
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

View File

@ -7,6 +7,9 @@ require 'cuke-pack/support/step_writer'
# fail instantly if ENV['FAILFAST'] is set # fail instantly if ENV['FAILFAST'] is set
require 'cuke-pack/support/failfast' 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 the level of flaying on the step definitions
# set it to false to skip flaying # set it to false to skip flaying
flay_level = 32 flay_level = 32