JBehave
  1. JBehave
  2. JBEHAVE-287

Dry-run Scenario to determine that no steps are Pending

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5
    • Fix Version/s: 2.5.6, 3.0
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Sometimes it is useful to know if all the Steps in a Scenario have been matched (which is fast) before attempting to run it (which may be very slow). For example, as we have learnt to use JBehave we have had need to refactor our Step definitions. Our JBehave tests aren't run much more often than daily at the moment, and it isn't reasonable to run them all before committing, due in both cases to the length of time needed to run them. Compounding that with other possible fires in the build chain, it can take quite some time before we realise that a change to a step definition has broken a Scenario.

      What we'd like is a way to (relatively) quickly dry-run our Scenarios, to confirm that each Step has at least been matched.

      One possibility that would allow us to do this would be if the Configuration passed into runScenarioSteps could provide the initial State, I'm thinking it would then be quite easy for the State to skip running the steps and just determine whether they had been matched?

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 2.5.6 [ 16473 ]
        Mauro Talevi made changes -
        Assignee Mauro Talevi [ maurotalevi ]
        Hide
        Mauro Talevi added a comment -

        Added StepsConfiguration.doDryRun(boolean) method to control dry run mode.

        Show
        Mauro Talevi added a comment - Added StepsConfiguration.doDryRun(boolean) method to control dry run mode.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.0 [ 16302 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: