Re: unittest - sort cases to be run

2012-08-21 Thread Peter Otten
Kevin Zhang wrote: > I want to sort the order of the unittest cases to be run, but found such > statement in Python doc, > "Note that the order in which the various test cases will be run is > determined by sorting the test function names with respect to the built-in > ordering for strings." > >

Re: unittest - sort cases to be run

2012-08-21 Thread goon12
On Tuesday, August 21, 2012 5:34:33 AM UTC-4, Terry Reedy wrote: > On 8/21/2012 5:09 AM, Kevin Zhang wrote: > > > Hi all, > > > > > > I want to sort the order of the unittest cases to be run, but found such > > > statement in Python doc, > > > "Note that the order in which the various test cas

Re: unittest - sort cases to be run

2012-08-21 Thread Terry Reedy
On 8/21/2012 5:09 AM, Kevin Zhang wrote: Hi all, I want to sort the order of the unittest cases to be run, but found such statement in Python doc, "Note that the order in which the various test cases will be run is determined by sorting the test function names with respect to the built-in orderi

unittest - sort cases to be run

2012-08-21 Thread Kevin Zhang
Hi all, I want to sort the order of the unittest cases to be run, but found such statement in Python doc, "Note that the order in which the various test cases will be run is determined by sorting the test function names with respect to the built-in ordering for strings." s.addTest(BTest())