[
https://jira.codehaus.org/browse/JBEHAVE-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296400#comment-296400
]
Maciej Madej commented on JBEHAVE-764:
--------------------------------------
Hmm, Scenario title represents specific scenario for given component. Couple of
next scenarios are for the same compoenent. I just want to indicate that
starting scenarios for given compoents have started. Example story file:
!--### Receive compoenent###
Scenario: Receieve A message
Given...
When...
Then...
Scenario: Receive B message
Given...
When...
Then...
!-- # Processing component###
Scenario: Process A message
Given....
When...
Then...
Scenario: Process B message
Given...
When..
Then..
I guess comments should be integral part of any DSL on every level of it.
Thanks to above comments it's more readable to browse story file.
> 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