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).
This commit is contained in:
Thibault Jouan 2015-04-03 18:33:35 +00:00
parent b1879ea9f9
commit 47455b9c45

View File

@ -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' }