Closed datentyp closed 6 years ago
Hi,
Any feedback on this issue from your side?
Note that I've updated serenity (1.2.5-rc.2) and serenity-cucumber (1.1.28) to their latest versions to demonstrate that this issue still exists.
Thanks,
If it's not marked as fixed, then most likely no one has picked it up yet.
Fixed in the next release (1.6.14). Note that errors in hook logic occur before the steps are executed, so the error will still happen even for scenarios marked with @ignore or @pending. However in these cases the tests will be reported as Ignored or pending.
Hi John,
Thx! I've verified the fix by updating my sample project at https://github.com/datentyp/bugs-cucumber-hooks-and-serenity-report
Looks really good :-)
Thanks for the update :-)
Hello,
Serenity reports buggy scenario results in case an exception occurs during the execution of some (@Before) hook. Some scenarios are reported as ignored, some as passed.
Imagine an exception gets thrown in a before hook:
Then Cucumber correctly reports:
But Serenity instead comes up with this results:
A sample project to reproduce the problem can be found at: https://github.com/datentyp/bugs-cucumber-hooks-and-serenity-report
The sample project does contain more details on the bug and the expected behavior. I've included the generated report for a quick view as well.
Regards, Wolfgang