-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Rake task fails with composite tag value option #1614
Comments
The preferred type is an array. It should work fine if you pass: t.cucumber_opts = ["--tag", "'not @skip'"] |
Thank you @valerianb! |
Do you have ideas on how to improve things on that area? The What changed with cucumber v4 more than 3 years ago now is the removal of the old syntax for tag expressions. Tag expressions can have space in it. I guess this is what caused your issue. However changing support of strings for |
I guess that a warning that string type
In my case I upgraded cucumber to version 7 and then |
Describe the bug
When cucumber rake task
cucumber_opts
field is a string and it contains composite tag option like--tags 'not @skip'
cucumber rake task fails withNo such file or directory - @skip'. You can use
cucumber --initto get started.
error.To Reproduce
Steps to reproduce the behavior:
cucumber_opts
task property is set to a string value ends by composite tag option, `` for examplebundle exec rake cucumber
No such file or directory - @skip'. You can use `cucumber --init`
Expected behavior
The rake task is running scenarios meets chosen tags criteria.
In the above example all scenarios except having
@skip
tag will run.Additional context
Looks like the next split is a root cause of the issue:
cucumber-ruby/lib/cucumber/rake/task.rb
Line 116 in 3ebc762
The text was updated successfully, but these errors were encountered: