Gherkin keyword binding should be a wildcard on the back end
Currently, if I have a step in my Feature file that is used more than once and with different keywords, I need to put multiple bindings in the glue code.
For example:
Scenario: my scenario A
Given I do this step here
…and elsewhere in the same feature file….
Scenario: my scenario B
When I do this step here
----------------------------------------------------------------------------------------
This requires the following glue code:
[Given("I do this step here")]
[When("I do this step here")]
public void MyImplementation() {
// do stuff
}
----------------------------------------------------------------------------------------
When I was code this in java, it does not matter what the glue code used for a keyword - it simply checks the RegEx expression and matched appropriately.
That is what SpecFlow should do to support step reuse.
Regards,
Dennis
Please sign in to leave a comment.
Comments
0 comments