JBehave
  1. JBehave
  2. JBEHAVE-323

Add @BeforeStories/@AfterStories annotations

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It is sometimes useful to invoke setup/teardown methods only once before and after a collection of stories, e.g. to setup and teardown an external service.

      The annotations @Before/AfterStories would complement annotations @Before/AfterStory, run before and after each story, and @Before/AfterScenario, run before and after each scenario.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Summary Add @BeforeRun/@AfterRun annotations Add @BeforeStories/@AfterStories annotations
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s 3.0 [ 16302 ]
        Fix Version/s 3.1 [ 16511 ]
        Description It may be useful to invoke setup/teardown methods before and after run, e.g. initialising a service.

        These annotations would complement @Before/AfterStory and @Before/AfterScenario.

        It is sometimes useful to invoke setup/teardown methods only once before and after a collection of stories, e.g. to setup and teardown an external service.

        The annotations @Before/AfterStories would complement annotations @Before/AfterStory, run before and after each story, and @Before/AfterScenario, run before and after each scenario.

        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        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: