Title: Message Title
Mauro Talevi commented on an issue
Re: Loose step matching, not based on StepType
While it's true that this constraint is strictly speaking not needed, it is nonetheless useful as it forces scenario writers not to be lazy and think about the syntax and how to word the steps. It is rather unlikely that steps of different types have exactly the same syntax. One could argue that it's a smell.
That said, there are situations where that may happen. In this case it may be worth introducing an ANY value in the StepType enum (rather than dropping the step type).
Having an annotation @Step(type=ANY) could be a good suggestion. We could then also have @Step(type=GIVEN) as an alias to @Given, etc ...
Add Comment
JBehave / JBEHAVE-1070
Loose step matching, not based on StepType
Hi, I've recently started working with jbehave, and I am noticing duplication when a step method can be more than one StepType, e.g.: {code} @Given("the cart is empty") @When("the cart is empty") public void cartIsEmpty() {} {code} An easy (?) workaround could be to support the following syntax {code} @Given("the cart is empty") @When p...
This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)