Mikko Ohtamaa
Mikko Ohtamaa

Reputation: 83636

Timing out tests with Green unit test runner

I have the following setup I use to run my tests with py.test using timeout plugin:

 venv/bin/py.test-3.4 --timeout=200 --durations=10 cryptoassets

(From https://bitbucket.org/miohtama/cryptoassets/src/bf2c3affa5528c6e96bfcc96b0caf4b0c9a9ec27/cryptoassets/core/tests/droneio-run-tests.sh?at=master )

I am using an external CI service. They have 15 minute limit on the tests run. As my tests depend on third party API services, randomly tests may hang. Thus, I use py.test timeout plugin to weed out these test cases and make sure the tests run somewhat normally.

Does green provide any similar mechanism to make sure that the one test doesn't keep blocking others forever?

Upvotes: 1

Views: 66

Answers (1)

Nathan Stocks
Nathan Stocks

Reputation: 2164

No, currently green does not include any timeout functionality.

I created an enhancement issue to track the feature request. Would you mind answering the question I posed there?

Upvotes: 1

Related Questions