Python nose frame: how to stop execution on first crash

It appears that if the test test fails, the nose will try to run the following test tags. How can I make a nose to abort all execution on the first error in any test sheet? I tried sys.exit () but it gave me some ugly and long messages about it

+42
python unit-testing
Jul 28 2018-10-12T00:
source share
1 answer

There is an option for the nose:

-x, --stop Stop running tests after the first error or failure 

This is what you need?

The following link can help you with all the options available for nosetests. http://nose.readthedocs.org/en/latest/usage.html

+71
Jul 28 '10 at 12:41
source share



All Articles