unittest: Calling tests in liner number order

Matthew Woodcraft mattheww at chiark.greenend.org.uk
Sun May 25 11:36:10 EDT 2008


Diez B. Roggisch <deets at nospam.web.de> wrote:
>I don't see this as something that can be solved by ordering tests - 
>*especially* not on a per-method-level as the OP suggested, because I 
>tend to have test suites that span several files.

unittest already runs multiple test suites in the order you specify
(which is another clue that running tests in order is not evil).

I suspect unittest's choice of alphabetical order for the tests within
a suite is more an artefact of its original Java implementation than
anything else.

-M-



More information about the Python-list mailing list