Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:feature_sets defined in Guardfile is not taken in account #36

Closed
cbtechnolia opened this issue Oct 30, 2012 · 2 comments
Closed

:feature_sets defined in Guardfile is not taken in account #36

cbtechnolia opened this issue Oct 30, 2012 · 2 comments

Comments

@cbtechnolia
Copy link

I have put my features in a subfolder hierarchy, and the path is defined in the Guardfile, thanks to the feature_sets option:

guard 'cucumber', :cli => '--profile default', :feature_sets => ['tests/features'] do
  watch(%r{(^tests/features/.+\.feature$)})                   { |m| m }
 end

When I launch guard, all tests are passed, but when I modify a file under watch (a .feature file in tests/features), guard doesn't see the modification.

This seems to be caused by line 86 in lib/guard/cucumber.rb:

paths = Inspector.clean(paths)

It seems that Inspector.clean doesn't take in account the :feature_sets option passed.

@netzpirat
Copy link
Owner

Thanks for reporting. Version 1.2.1 takes the feature sets into account when cleaning the paths.

@cbtechnolia
Copy link
Author

Yes, I confirm it works with release 1.2.1. Thanks a lot for your fast answer 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants