UnitTest break on failure
goon12 at gmail.com
Tue Feb 10 14:07:55 EST 2009
On Tue, Feb 10, 2009 at 11:48 AM, Qian Xu <quian.xu at stud.tu-ilmenau.de> wrote:
> 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?
Typically you would have a different test for two different methods,
one for each method.
More information about the Python-list