-
-
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
Set timeout in formatter events #641
Comments
When creating a listener/formatter you can pass in an options with a timeout in order to specify the timeout for all actions. There is no current way to specify the timeout for individual actions. const formatter = require('cucumber').Listener.Fomatter({timeout: 5 * 60 * 1000}); This isn't documented as custom formatters aren't documented, but I will be adding better support and documentation for them soon. |
@charlierudolph does this configuration option work? |
Auhh okay. Looks like |
And do you plan to fix this and add support in the near future? |
I'm working on 2.0 now which will include docs on custom formatters. That probably won't be out for a month or so. If you'd like this earlier and could make a PR just updating the formatter to pass its options into the listener constructor on the line you pointed out, I'm happy to merge it and release a new version for you. |
It would be very cool to include this in the next release! Thank you! |
Fixed in just released 1.3.1 |
Thank you! |
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 have implemented a custom formatter for cucumber, what pushes the results to a service. But it might take more time than the previously set default timeout. I know that when we use
registerHandler
method, we can set other timeout, but what is the case with Event functions:Is there any way how I can modify timeout in this case?
The text was updated successfully, but these errors were encountered: