From 47455b9c450fc91e39ad3023a2cde19eb9395bc5 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Fri, 3 Apr 2015 18:33:35 +0000 Subject: [PATCH] Restrict directories watched by guard If we watch directories like .git or tmp, guard/listen can get very slow when running tests generating new events, the adapter will have to process all of them (and potentially search file system for new files). --- Guardfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Guardfile b/Guardfile index dab7a7b..cfe4104 100644 --- a/Guardfile +++ b/Guardfile @@ -1,3 +1,5 @@ +directories %w[features lib spec] + guard :cucumber, cli: '--format pretty --quiet', all_on_start: false do watch(%r{\Afeatures/.+\.feature\z}) watch(%r{\Afeatures/support/.+\.rb\z}) { 'features' }