Add support for a test-timeout option #45
Replies: 4 comments
-
Ooh, or maybe the timeout behavior should be configurable too. Something like
|
Beta Was this translation helpful? Give feedback.
-
I think for the inspiration we can look here: https://bitbucket.org/flub/pytest-timeout/
From py.test:
There seems to be also some really complex corner cases, like entering pdb: https://bitbucket.org/flub/pytest-timeout/src/f97e9c8b79a4da9b89b49fb67be91f6c3c27457f/pytest_timeout.py?at=default#cl-82 Because py.test does not support timeout natively, but everything is done as a plugin hack, I guess one can come up with a cleaner implementation. Also it probably does not make sense to have perfect cleanup or teardown in the case of timeout. Think it more of an valve to make sure the test run terminates in some point and does not keep running forever unless there is human intervention. |
Beta Was this translation helpful? Give feedback.
-
I'm not interested in implementing this myself. If someone else wants to, I would be happy to review the pull request. |
Beta Was this translation helpful? Give feedback.
-
I'm going to go ahead and re-open this. Even if I don't implement it personally (or at least don't do it soon), it's still a good enhancement idea in general. |
Beta Was this translation helpful? Give feedback.
-
On StackOverflow, it was asked whether green had any timeout functionality similar to the timeout plugin in py.test. Sounds like an interesting feature.
What would be the best behavior when a test hits the timeout?
Beta Was this translation helpful? Give feedback.
All reactions