2017 refactor
This commit is contained in:
@@ -22,3 +22,28 @@ guard :rspec do
|
||||
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
||||
end
|
||||
|
||||
|
||||
cucumber_options = {
|
||||
# Below are examples overriding defaults
|
||||
|
||||
# cmd: 'bin/cucumber',
|
||||
# cmd_additional_args: '--profile guard',
|
||||
|
||||
# all_after_pass: false,
|
||||
# all_on_start: false,
|
||||
# keep_failed: false,
|
||||
# feature_sets: ['features/frontend', 'features/experimental'],
|
||||
|
||||
# run_all: { cmd_additional_args: '--profile guard_all' },
|
||||
# focus_on: { 'wip' }, # @wip
|
||||
# notification: false
|
||||
}
|
||||
|
||||
guard "cucumber", cucumber_options do
|
||||
watch(%r{^features/.+\.feature$})
|
||||
watch(%r{^features/support/.+$}) { "features" }
|
||||
|
||||
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
|
||||
Dir[File.join("**/#{m[1]}.feature")][0] || "features"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user