gobdd icon indicating copy to clipboard operation
gobdd copied to clipboard

Test continues running when a step definition cannot be found

Open sagikazarmark opened this issue 4 years ago • 2 comments

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.

sagikazarmark avatar May 26 '20 12:05 sagikazarmark

Changing it has one disadvantage - if there are more steps to define, you'll learn about it when fixing the previous problem.

bkielbasa avatar May 29 '20 09:05 bkielbasa

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.

sagikazarmark avatar May 29 '20 10:05 sagikazarmark