Ignore full-stop/period|punctation at end of step

Description

I experienced some trouble especially with @Then steps ending with punctation characters:


will require a step definition like


Mind that you must not forget the period at the end of the step definition... otherwise message will be Hello World. rathen than Hello World.

This is a quite common mistake and in addition it prevents the step definition to be reusable here:

where it is required to have an Alias just because of the period. Or, as alternative, the assertions inside need to deal with the period at the end.

It would be nice if JBehave could ignore this period although it is not quite clear to me how to handle scenarios where the period needs to be parsed. And of course such a change might break existing tests.

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created October 14, 2011 at 6:59 AM
Updated February 13, 2012 at 8:16 AM
Resolved February 13, 2012 at 8:16 AM