You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a step with a string argument and a Doc String argument, the generated snippet contains a duplicate argument name
Expected Behavior
Scenario: Snippet for undefined step with combined argumentsGiven a file named "features/undefined_steps.feature" with:
""" Feature: Scenario: combined step Given a "thing" with: \"\"\" thing \"\"\" """When I run `cucumber features/undefined_steps.feature -s`
Then the output should contain:
""" Given('a {string} with:') do |string, string2| pending # Write code here that turns the phrase above into concrete actions end """
Current Behavior
Scenario: Snippet for undefined step with combined argumentsGiven a file named "features/undefined_steps.feature" with:
""" Feature: Scenario: combined step Given a "thing" with: \"\"\" thing \"\"\" """When I run `cucumber features/undefined_steps.feature -s`
Then the output should contain:
""" Given('a {string} with:') do |string, string| pending # Write code here that turns the phrase above into concrete actions end """
An undefined step with a string parameter and a Doc String generates a
glue code with a syntax error.
It's better to name a Doc String a "doc_string" as param name instead of
"string"
Summary
When you have a step with a string argument and a Doc String argument, the generated snippet contains a duplicate argument name
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context & Motivation
Other block parameters does not generate a "string" param, this Doc String param generates a "string"
Your Environment
The text was updated successfully, but these errors were encountered: