vendredi 27 mars 2015

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 http://ift.tt/1OFfm6f )


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?


Aucun commentaire:

Enregistrer un commentaire