Details
-
Type: Improvement
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 2.5
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
The biggest sore point for my team are the greedy reg-ex matchers for step prose.
This was somewhat solved in another ticket which added a priority field to the annotation.
However, this does not scale well with a large amount of steps. It's unmanageable, and a bit ugly, to have to worry about a global priority number.
This problem would be best fixed if the reg-ex matcher was simply non-greedy. A usable solution, I think, would be to provide a configuration option in the StepsConfiguration to enable this.
(On a side note, you may want to consider moving to a feature rich templating language like velocity).
+1
I don't use jBehave in anger (however, I do use other tool that is very similar and I would like to move to jbehave). I cannot imagine a use case when I want the regexp groups to be greedy. Again, I'm a newbie so don't listen to me too much...