One of my tests waits until an event happens in the Then
step. If the test works fine there is no issue but if the test is failing (i.e. no event is triggered) then it just hangs.
How can I set a timeout in Cucumber
?
I know JUnit
has a timeout parameter you can use in the @Test annotation
, is there something similar for Cucumber
?