-
Notifications
You must be signed in to change notification settings - Fork 18
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
No error when a Gherkin statement doesn't match any CucumberSwift expressions #36
Comments
Either a warning or an error on unmatched steps would be good. I am trying out CucumberSwift but am only getting The process described for generating step stubs does not seem to work. I had a quick look at the sources and there does not seem to be a class Update: once tests are working this also works. Bit of a catch-22 tho? This is a shame as CucumberSwift seems to be the hottest contender for doing BDD in Swift. |
Ok, my problem was that I did not have the Features directory added to the UITest Target. I assume CucumberSwift did not find any .feature files but passed |
Yeah, in order to make it so that consumers had to do as little as possible CucumberSwift ships with a test called Previous versions used ideas like |
However, many people have run into the issue of not having the features directory correctly added and I think there's a reasonable way CucumberSwift could report no feature files found. Let me add that to the todo along with this issue. |
Thanks, great. Would it be possible to get something like a verbose output option? I have tests running but only some of them actually execute code. That is, I have a scenario outline and the expected tests are generated and appear in the test navigator but the step code is never executed, not even for the Given step. I set breakpoints to check and they did not get hit. I am sure I am making beginner mistakes somewhere - it would be good to be able to see what CucumberSwift is and is not doing. |
Released in 3.3.10 |
Describe the bug
No error when a Gherkin statement doesn't match any CucumberSwift expressions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Error for Gherkin statement with no matching CucumberSwift expressions
Additional context
The text was updated successfully, but these errors were encountered: