Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5979085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:36:34+00:00 2026-05-22T21:36:34+00:00

I have my features organized in subfolders, like this: app/ features/ users/ feature1.feature feature2.feature

  • 0

I have my features organized in subfolders, like this:

app/
  features/
     users/
       feature1.feature
       feature2.feature

But everytime I save a feature, Guard runs all my features (not just the one that was edited). How can I change it to only run the one that was saved?

Here’s my Guardfile for Cucumber:

guard 'cucumber', :cli => "--drb --require features/support --require features/step_definitions" do
  watch(%r{features/.+\.feature})
  watch(%r{features/support/.+})          { 'features' }
  watch(%r{features/step_definitions/(.+)_steps\.rb}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:36:34+00:00Added an answer on May 22, 2026 at 9:36 pm

    Aph, the answer was right there in the documentation:

    It’s very important that you
    understand how Cucumber gets
    configured, because it’s often the
    origin of strange behavior of
    guard-cucumber.

    Cucumber uses cucumber.yml for
    defining profiles of specific run
    configurations. When you pass
    configurations through the :cli option
    but don’t include a specific profile
    with –profile, then the
    configurations from the default
    profile are also used.

    For example, when you’re using the
    default cucumber.yml generated by
    cucumber-rails, then the default
    profile forces guard-cucumber to
    always run all features, because it
    appends the features folder.

    Configure Cucumber solely from Guard

    If you want to configure Cucumber from
    Guard solely, then you should pass
    –no-profile to the :cli option.

    So, passing in --no-profile for the :cli option works now, and I’m getting normal behavior.

    Shame on me for not reading the docs!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to have some of the ScriptManager features in the new Asp.net MVC
different programming languages have different features or lack certain features. Design patterns are a
Does the Java language have delegate features, similar to how C# has support for
In particular what strengths does it have over caching features of Asp.net
Have just started using Visual Studio Professional's built-in unit testing features, which as I
So I have a backlog of features and we are about to get started
I have a pure Winapi application that needs a few new features. One of
I have been watching the growing visibility of functional programming languages and features for
I have checked the following during turning on Windows features: IIS,IIS Compatibility and under
I have a series of Eclipse projects containing a number of plugins and features

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.