UnitTest break on failure
Qian Xu
quian.xu at stud.tu-ilmenau.de
Tue Feb 10 11:48:39 EST 2009
Hi All,
i am writing unit tests and have got a problem:
I want to test some code sequence like:
self.assertEquals(testMethod1(), expected_value1);
self.assertEquals(testMethod2(), expected_value2);
However, if the first test item is failed, no more tests will be executed.
Can I tell Python,
1. go ahead, if a failure is occurred.
2. stop, if an error is occurred?
Best regards,
Qian Xu
More information about the Python-list
mailing list