Re: UnitTest break on failure

2009-02-10 Thread Scott David Daniels
Qian Xu wrote: 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 Py

Re: UnitTest break on failure

2009-02-10 Thread Joe Riopel
On Tue, Feb 10, 2009 at 11:48 AM, Qian Xu 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.

UnitTest break on failure

2009-02-10 Thread Qian Xu
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