Is there a way to make python unittest (I am using 2.6, I have unittest2 available) as soon as an error or fail occured without waiting all tests to finish?
And a bonus question 🙂 Is there a way to order tests. For example, pulling tests that are likely to fail on front?
Run
unittestit with the-foption.Example:
./auth_test.py -fWhere at the end of
auth_test.pyyou haveFor ordering – I don’t think so. At least not out of the box. You can, however, run only a single test or class.