feature-goto-step-definition in features/ sub-dirs #39

Closed
npassaro opened this Issue Nov 5, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@npassaro

npassaro commented Nov 5, 2013

My Cucumber project has its feature files present in sub-directories within the features/ directory. The goto functionality does not seem to work in this case.

But, if I put a .feature file in feature/foo.feature any implemented step that foo.feature has will be found by the function.

Am I missing a configuration parameter to point to the absolute path of my directory?

Can you help me?

Thanks.

@michaelklishin

This comment has been minimized.

Show comment Hide comment
@michaelklishin

michaelklishin Nov 5, 2013

Owner

Current implementation assumes features directory structure is flat. We should try using globbing (such as features/**/*.feature). Pull requests are welcome.

Owner

michaelklishin commented Nov 5, 2013

Current implementation assumes features directory structure is flat. We should try using globbing (such as features/**/*.feature). Pull requests are welcome.

@avsej

This comment has been minimized.

Show comment Hide comment
@avsej

avsej May 22, 2014

Contributor

@npassaro go-to functionality does not care about how your features structured. It only takes care about step definitions:

files = Dir["features/**/*steps.rb"]

Contributor

avsej commented May 22, 2014

@npassaro go-to functionality does not care about how your features structured. It only takes care about step definitions:

files = Dir["features/**/*steps.rb"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment