JGiven
JGiven copied to clipboard
beforescenario not called with dynamically added stages
In some scenario call addStage(OtherGiven.class)
then, call its methods in that scenario.
@BeforeScenario
marked methods in OtherGiven
class will not be called.
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...