JGiven icon indicating copy to clipboard operation
JGiven copied to clipboard

beforescenario not called with dynamically added stages

Open adrian-herscu opened this issue 1 year ago • 1 comments

In some scenario call addStage(OtherGiven.class) then, call its methods in that scenario.

@BeforeScenario marked methods in OtherGiven class will not be called.

adrian-herscu avatar Nov 12 '23 18:11 adrian-herscu

Hi, sorry for the late reply, I've been on holiday. You present an interesting issue here; Clearly, it appears natural to expect "OtherGivens" before scenario method to be loaded. On the other hand, we have literally started the scenario already, so maybe it is not a good idea to run a "before scenario method here..." I think I need to play around with this a bit...

l-1squared avatar Nov 20 '23 06:11 l-1squared