Step Defs not found from features/subfolder #184

Open
dmcnulla opened this Issue Jul 20, 2013 · 3 comments

Projects

None yet

3 participants

@dmcnulla

If I have my .feature files in the features folder, it's finding the step definitions and running OK.

When I create feature subfolders to organize my feature files, and run, I get the message about undefined snippets:
You can implement step definitions for undefined steps with these snippets:
[then it lists the steps in the scenario]

When I run this from the command line, all the scenarios run with no messages about undefined step definitions.

I reviewed the RubyTest.sublime-settings and did not recognize a way to configure this.

@dmcnulla dmcnulla closed this Jul 20, 2013
@dmcnulla dmcnulla reopened this Jul 20, 2013
@gs
Collaborator
gs commented Oct 7, 2013

hey,
is the issue still valid? did you run sublime from project folder in command line?

@agultekin

Hi,

I found a solution for the subfolders.
In the RubyTest.sublime-settings I put the features folder placement and it worked.
"run_cucumber_command": "cucumber {relative_path} --require ~/Documents/[your folder]/features/",

Now when I am in the sub folder of the features, I can run the test without the message undefined step definitions and It has no impact on the others tests.

@gs
Collaborator
gs commented Dec 4, 2013

well done! thx @agultekin

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