JBehave
  1. JBehave
  2. JBEHAVE-1061

@BeforeScenario runs for every steps file that are instanciated

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.x
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Jbehave 3.9.5, Intellij 13.1, OSx 10.10.1
    • Number of attachments :
      0

      Description

      When i run my scenario that are using multiple steps files, the method that are annotated with @BeforeScenario runs for each steps file.

      Im excpecting it to only run per scenario not per steps file

        Activity

        Hide
        Mauro Talevi added a comment -

        All the methods annotated with @BeforeScenario will run before each scenario, regardless of which steps file the are contained in.

        Can you provide a sample project reproducing your behaviour?

        Show
        Mauro Talevi added a comment - All the methods annotated with @BeforeScenario will run before each scenario, regardless of which steps file the are contained in. Can you provide a sample project reproducing your behaviour?

          People

          • Assignee:
            Unassigned
            Reporter:
            thomas holm
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: