[ https://jira.codehaus.org/browse/JBEHAVE-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281277#comment-281277 ]
Mauro Talevi commented on JBEHAVE-615: -------------------------------------- We could make the ignoring of the period configurable in the RegexStoryParser and it would be down to the user to configure it. > Ignore full-stop/period|punctation at end of step > ------------------------------------------------- > > Key: JBEHAVE-615 > URL: https://jira.codehaus.org/browse/JBEHAVE-615 > Project: JBehave > Issue Type: Improvement > Components: Core > Reporter: Mark Michaelis > > I experienced some trouble especially with {{@}}{{Then}} steps ending with > punctation characters: > {noformat} > Given I do this > When I do that > Then I expect to see the message Hello World. > {noformat} > will require a step definition like > {code:java} > @Then("I expect to see the message $message.") > {code} > 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: > {noformat} > Given I do this > When I do that > Then I expect to see the message Hello World > And the world echoes Hello John. > {noformat} > 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. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email