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

invalid option: --profile when running with Bundler (cucumber for ruby) #19

Closed
bunnymatic opened this issue Feb 2, 2016 · 2 comments
Closed

Comments

@bunnymatic
Copy link

I just recently started running into an issue with the Rake tasks. It seems that the options that I'm trying to pass to cucumber are getting skipped and passed to the ruby as another command (or something) which leads to:

.rbenv/versions/2.3.0/bin/ruby -S bundle exec cucumber --profile default
Using the default profile...
0 scenarios
0 steps
0m0.000s

invalid option: --profile

For this test run, I've added --name nomatch so it actually doesn't try to run any scenarios (just to highlight the issue).

I dug into the source a bit and it seems like in here:

https://github.com/cucumber/cucumber-ruby/blob/master/lib/cucumber/rake/task.rb#L81

where the cmd is built, in the use bundler path, it builds a shell command like

.rbenv/versions/2.3.0/bin/ruby -S bundle exec cucumber --profile default

and (at least on my mac) the --profile argument appears to apply to the ruby command (not cucumber). I'm not sure where the quoting should go and will try to take a closer look. But if there is a known solution/workaround here, please let me know. I'm on cucumber (2.3.2)

Thanks

@bunnymatic bunnymatic changed the title invalid option: --profile when running with Bundler invalid option: --profile when running with Bundler (cucumber for ruby) Feb 2, 2016
@bunnymatic
Copy link
Author

Whoops. I actually was on 2.1.0 and after bumping to 2.3.2 the problem went away.
I pre-emptively pulled that 2.3.2 from the Gemfile.lock not remembering that I'd just updated gems.

Closing the issue. Sorry to bother you.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant