trivago / cluecumber

Clear and concise reporting for the Cucumber BDD JSON format.
https://www.softwaretester.blog
Apache License 2.0
268 stars 89 forks source link

Inconsistent Background handling #319

Closed bischoffdev closed 1 year ago

bischoffdev commented 1 year ago

Describe the bug Failure in Background steps followed by skipped steps ist considered skipped instead of failed.

mpkorstanje commented 1 year ago

@bischoffdev I saw the code that determines the outcome, you can simplify it a lot.

For all steps in a scenario (background, hooks, regular steps, ect), put them in a list. Then find find the worst status. That's the status of the scenario.

bischoffdev commented 1 year ago

Yes doing this now. I noticed that I never handled Background steps correctly at all.

bischoffdev commented 1 year ago

Ready for release in 3.4.0