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

Scenario --name not working for names with quotes and multiple words #379

Closed
rsraposa opened this issue Aug 22, 2012 · 4 comments
Closed

Comments

@rsraposa
Copy link

It seems Cucumber JVM has a bug where the command line option cucumber.options is being split on spaces, and thus a name option with multiple words does not parse correctly (e.g. --name 'Scenario: This is my scenario').

More background can be found in this post:
https://groups.google.com/forum/?fromgroups=#!topic/cukes/lwI86jYmsnw

Thanks.

Robert

@aslakhellesoy
Copy link
Contributor

We need to implement a shellsplit method that behaves like Ruby's Shellwords.split method

@wjpowell
Copy link
Contributor

I'm having this problem now. I'll go ahead and write a fix for it.

@wjpowell
Copy link
Contributor

added a pull request for this issue 429

It looks like this problem only exists when cucumber options is being used from the command line. The current RuntimeOptions constructor splits the cucumber.options property on spaces. The modification only adds support for single quoted strings. I considered adding support for escaped characters, but I'm not sure how this will interact with the command line parser.

@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

3 participants