-
We are encountering an internal error with our tests that cause a specific step to hang indefinitely. Im looking for methods to set a timeout value either on the step definition or on a global scale for all steps. Ive found mixed results online on whether or not there is a default timeout, but ideally if a test step is taking longer than lets say 30 seconds, we would like to just set it as a failed test and move on. Are there any cucumber RS methods for doing this? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@ecaponi3 hi! There is no such built-in functionality in There are multiple ways of resolving this issue:
|
Beta Was this translation helpful? Give feedback.
@ecaponi3 hi! There is no such built-in functionality in
cucumber
crate. And I'm quite unsure, thatcucumber
crate is the correct place for it.There are multiple ways of resolving this issue:
You can use
tokio::time::timeout
(or similar), and wrap your step definitions into it:With implementing a simple proc macro atop, it may be reduced to:
You can implement your own
Runner
which have th…