From 1d67f907ef2be8277421604448c04b1564955488 Mon Sep 17 00:00:00 2001 From: Cezary Baginski Date: Thu, 28 Apr 2016 03:39:38 +0200 Subject: [PATCH] conveniently attach sample options (template) --- lib/guard/cucumber/templates/Guardfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/guard/cucumber/templates/Guardfile b/lib/guard/cucumber/templates/Guardfile index cf15065..c79fa80 100644 --- a/lib/guard/cucumber/templates/Guardfile +++ b/lib/guard/cucumber/templates/Guardfile @@ -1,4 +1,20 @@ -guard "cucumber" do +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" }