Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test continues running when a step definition cannot be found #109

Open
sagikazarmark opened this issue May 26, 2020 · 2 comments
Open

Test continues running when a step definition cannot be found #109

sagikazarmark opened this issue May 26, 2020 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@sagikazarmark
Copy link
Collaborator

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 sagikazarmark added the bug Something isn't working label May 26, 2020
@bkielbasa
Copy link
Collaborator

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

@sagikazarmark
Copy link
Collaborator Author

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.

@bkielbasa bkielbasa modified the milestones: 1.1, 1.2 Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants