Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27561 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2012-08-21 05:34 -0400 |
| Last post | 2012-08-21 10:27 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: unittest - sort cases to be run Terry Reedy <tjreedy@udel.edu> - 2012-08-21 05:34 -0400
Re: unittest - sort cases to be run goon12 <goon12@gmail.com> - 2012-08-21 10:27 -0700
Re: unittest - sort cases to be run goon12 <goon12@gmail.com> - 2012-08-21 10:27 -0700
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2012-08-21 05:34 -0400 |
| Subject | Re: unittest - sort cases to be run |
| Message-ID | <mailman.3597.1345541711.4697.python-list@python.org> |
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 ordering for strings." > > s.addTest(BTest()) > s.addTest(ATest()) > TextTestRunner().run(ts) > > I need BTest() to be run prior to ATest(), is there any > natural/beautiful way to achieve this? Thanks, Rename it @BTest. -- Terry Jan Reedy
[toc] | [next] | [standalone]
| From | goon12 <goon12@gmail.com> |
|---|---|
| Date | 2012-08-21 10:27 -0700 |
| Message-ID | <mailman.3612.1345570061.4697.python-list@python.org> |
| In reply to | #27561 |
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 cases will be run is > > > determined by sorting the test function names with respect to the > > > built-in ordering for strings." > > > > > > s.addTest(BTest()) > > > s.addTest(ATest()) > > > TextTestRunner().run(ts) > > > > > > I need BTest() to be run prior to ATest(), is there any > > > natural/beautiful way to achieve this? Thanks, If BTest *has* to run prior to ATest, it could be a code smell.
[toc] | [prev] | [next] | [standalone]
| From | goon12 <goon12@gmail.com> |
|---|---|
| Date | 2012-08-21 10:27 -0700 |
| Message-ID | <ffbab444-db2b-40bd-928d-d4207de0c5e5@googlegroups.com> |
| In reply to | #27561 |
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 cases will be run is > > > determined by sorting the test function names with respect to the > > > built-in ordering for strings." > > > > > > s.addTest(BTest()) > > > s.addTest(ATest()) > > > TextTestRunner().run(ts) > > > > > > I need BTest() to be run prior to ATest(), is there any > > > natural/beautiful way to achieve this? Thanks, If BTest *has* to run prior to ATest, it could be a code smell.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web