-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
There are plans to support generators on the steps? #438
Comments
Looking at the idea behind for es6 generators, I believe support for generators is simply based on what version of node you are running. What happens when you run the given code? (I'm curious what would happen if you were to remove |
Ok, if I run something like this:
The steps pass without open the browser. The scenario is successful but does nothing, even the result variable never print. And if I run something like this:
The step exceed the timed out with any time I set. I use Node v4.2.1 with generators support. So, I think "cucumber" does not support the flow generator. How to make do it exceeds my knowledge. Thanks. |
Looks like we can use is-generator to check if the function supplied is a generator function and then use co to run it. I like the idea of supporting it. Personally don't have time to work on this at the moment and probably won't until we get to 1.0. Pull request welcome. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi.
I recently started using "cucumber" and I love it. I'm using "WebdriverIO" in my tests and I would like to use generators. Like this:
So, there are plans to support generators on the steps?
Thanks.
The text was updated successfully, but these errors were encountered: