Closed Johnlon closed 4 months ago
https://github.com/cucumber/godog/issues/633 covers the proposal.
AfterStepHook doesn't allow full manipulation of the test outcome, so added PostStepHook to compensate without breaking compat.
I need full control over the test outcome from a hook and the AfterStepHook does not permit that.
To be honest I'd rather just introduct a breaking change and replace the logic of AfterStep with my proposed PostStep.
I've added an _example but not figured out the testing.
Not going to progress
See https://github.com/cucumber/godog/issues/633
🤔 What's changed?
https://github.com/cucumber/godog/issues/633 covers the proposal.
AfterStepHook doesn't allow full manipulation of the test outcome, so added PostStepHook to compensate without breaking compat.
⚡️ What's your motivation?
I need full control over the test outcome from a hook and the AfterStepHook does not permit that.
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
To be honest I'd rather just introduct a breaking change and replace the logic of AfterStep with my proposed PostStep.
📋 Checklist:
I've added an _example but not figured out the testing.