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

[Improvement] Custom step_definitions path #28

Open
simplyageek opened this issue Apr 3, 2017 · 2 comments
Open

[Improvement] Custom step_definitions path #28

simplyageek opened this issue Apr 3, 2017 · 2 comments

Comments

@simplyageek
Copy link

I'd suggest adding a new config value to settings, which would hold the path for the step definition files (to scan). Maybe I don't like to have my steps under /features/step_definitions

@tomkadwill
Copy link
Owner

Hi @beniamin-kis, you can change the path that the plugin looks for under settings. Is that what you are looking for?

@simplyageek
Copy link
Author

simplyageek commented Apr 6, 2017

No, under settings I can only set the path for the feature files.
But my project structure is:
[root]/src/features/login.feature etc.
[root]/src/steps/givens.js etc.

Your plugin scans for steps under the features path only. So if I don't have my steps in
[root]/src/features/step_definitions/*.js
then it can't find them.

My suggestion was a second path configuration under settings, which would hold the path for the steps files.

Check this line:
https://github.com/tomkadwill/atom-cucumber-autocomplete/blob/master/lib/provider.js#L60

See the hardcoded path value? That should be configurable.

Same for line #48

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

No branches or pull requests

2 participants