JBehave
  1. JBehave
  2. JBEHAVE-91

Allow multiple stories to be run

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: Maven Plugin
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently, only one story path can be specified.

      Allow multiple story paths to be specified as relative to a story base dir - with includes/excludes patterns.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Assignee Mauro Talevi [ maurotalevi ]
        Mauro Talevi made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Mauro Talevi added a comment -

        Two modes are now supported:

        1. single story path -
        <configuration>
        <storyPath>org/jbehave/it/stories/it.story</storyPath>
        <storyPackage>org.jbehave.it.stories</storyPackage>
        </configuration>

        2. multiple story paths -

        <configuration>
        <storyDirectory>org/jbehave/it/stories</storyDirectory>
        <storyIncludes>
        <storyInclude>it*.story</storyInclude>
        </storyIncludes>
        <storyExcludes>
        <storyExclude>it1.story</storyExclude>
        </storyExcludes>
        <storyPackage>org.jbehave.it.stories</storyPackage>
        </configuration>

        where the includes/excludes filters follow the usual Ant/Maven conventions.

        Note that in both modes the *.story resources are expected to be found in the classpath.

        Show
        Mauro Talevi added a comment - Two modes are now supported: 1. single story path - <configuration> <storyPath>org/jbehave/it/stories/it.story</storyPath> <storyPackage>org.jbehave.it.stories</storyPackage> </configuration> 2. multiple story paths - <configuration> <storyDirectory>org/jbehave/it/stories</storyDirectory> <storyIncludes> <storyInclude>it*.story</storyInclude> </storyIncludes> <storyExcludes> <storyExclude>it1.story</storyExclude> </storyExcludes> <storyPackage>org.jbehave.it.stories</storyPackage> </configuration> where the includes/excludes filters follow the usual Ant/Maven conventions. Note that in both modes the *.story resources are expected to be found in the classpath.
        Mauro Talevi made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: