Scenario A:
Step A - PENDING
Step B - PENDING
Scenario B:
Step C - Implemented
Step D - Implemented
When running the story, steps C and D are set as NOT PERFORMED. How do I get those to run even with scenario A failing due to pending steps?
I've tried setting a PendingStepStrategy to PassingUponPendingStep (and FailingUponPendingStep) but it doesn't make a difference.
JBehave can be configured to keep track of state in between Scenarios. I believe the reason for this is to account for when you want to have scenarios that relate to one another.
If you check what configuration your using, then you should be able to see if you have a certain parameter on the StoryControls set.
For example
Configuration configuration = new MostUsefulConfiguration()
.useStoryControls(new StoryControls().doResetStateBeforeScenario(false))
...
If you have the above setting, it will not perform the other scenarios as the failure state is retained
You can use JBehaves MostUsefulConfiguration class within your configuration without extra configuration, as the doResetStateBeforeScenario is set to true by default.