At some point having all of your features in a single directory maybe become an issue. Cucumber allows you to add feature subdirectories for organization. Subdirectories work as expected when running the entire cucumber suite. However, when executing a single feature located in a subdirectory cucumber doesn’t load the web_steps.rb or other support files in the features directory.
You can fix this behavior by using the require flag to pass in the features directory.
bin/cucumber features/users/create_useres.feature -r features
You can also add "-r features"
to your cucumber.yml
file under the default profile and it will be passed in every time.