gobdd
gobdd copied to clipboard
Test continues running when a step definition cannot be found
Describe the bug When a step definition cannot be found, GoBDD continues running the test, marking subsequent steps as failed, potentially because missing context values.
To Reproduce
Do not define a step in the middle of a scenario.
Expected behavior
The whole scenario should fail.
Changing it has one disadvantage - if there are more steps to define, you'll learn about it when fixing the previous problem.
We could look for further steps and check if they are defined. At least, I think that can be solved other ways, while letting the test to continue running will just lead to incorrect results.