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

Closed
rsraposa opened this Issue Aug 22, 2012 · 3 comments

Comments

Projects
None yet
3 participants

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

Owner

aslakhellesoy commented Aug 22, 2012

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

Contributor

wjpowell commented Nov 18, 2012

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

Contributor

wjpowell commented Nov 20, 2012

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.

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