[ https://jira.codehaus.org/browse/JBEHAVE-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296413#comment-296413 ]
Brian Repko commented on JBEHAVE-764: ------------------------------------- Even if those comments parse they are part of the Scenario above them as a Story, once we get into Scenarios, is just a group of Scenarios. The real improvement is introducing the notion of "Scenario Groups". But doing those properly would require a change to the domain as well as new lifecycle annotations @Before@AfterScenarioGroup etc. Its not just a simple parser change to do this properly. Or are we missing an interface that would allow you to override the standard behavior? So, I'm curious, why not convert the groups into stories but group them on the file system in one folder? > Allow comments between scenarios in JBehave story files. > -------------------------------------------------------- > > Key: JBEHAVE-764 > URL: https://jira.codehaus.org/browse/JBEHAVE-764 > Project: JBehave > Issue Type: Improvement > Components: Core > Affects Versions: 3.6.1 > Reporter: Maciej Madej > Priority: Minor > Attachments: RegexStoryRemovingCommentsParser.java > > > Hi, > Our story file contains aprox. 30 scenarios, they are logically divided into > groups. We would like to have possibility to split those groups in story > files using comments. > So after every 3-4 scenarios we would like to add comments indicating that > new section has begun. I've played little bit with Jbehave RegexStoryParser > and all that need to be done is > change of "public Story parseStory(String storyAsText, String storyPath)" > method.Please see attached code snippet from overridedn RegexStoryParser -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa 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