Closed BorisOsipov closed 6 years ago
Just FIY.
I went deep into this issue and realized that is not so easy to fix cucumber hooks bugs. I'd like to recommend people how meet this issue use wdio before\after hooks instead of cucumbers hooks.
@BorisOsipov, I'm going to check it too the next days.
After update to
wdio-cucumber 2.0.0
version.If there are cucumber tests with hooks reporters fails with an error.
Error apprears because cucumber emits
testStepStartedEvent
for before\after hooks as well as for steps. In such a case reporting works wrong. Sample repo for reproducing issue https://github.com/BorisOsipov/wdio-cucumber4-issue/cc @mhoyer