Skip to content

Option StopOnFailure not working since 15.0 #768

Description

@kcross-ctoken

👓 What did you see?

Give I set the StopOnFailure option
When a step fails in a scenario
Then the test stops immediatly without evaluating any more steps
And the suite stops without evaluating any more scenarios.

Currently it will evaluate all the steps and report failures on all subsequint steps.
This makes it hard to debug and if you are using interpolation in the steps they can/do break.

✅ What did you expect to see?

The scenario should always stop on the first failed step. The suite should stop on the first failed scenario if the StopOnFailure is set.

I am currently working on a fix + a test.

📦 Which tool/library version are you using?

godog 16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions