unittest: Calling tests in liner number order
Diez B. Roggisch
deets at nospam.web.de
Sun May 25 07:28:19 EDT 2008
Roy Smith schrieb:
> In article
> <af66b0d4-f77d-4d54-8ee0-94592497d2f2 at l64g2000hse.googlegroups.com>,
> Fuzzyman <fuzzyman at gmail.com> wrote:
>
>> Also, like others, I have had wonderful experiences of trying to track
>> down test failures that depend on the order that tests run in. Having
>> interdependencies between tests is a recipe for madness...
>
> I agree that tests should not depend on each other, but sometimes it's
> still useful to have the tests run in a certain order for reporting
> purposes.
Then sort your report. Seriously. A test-outpt shoud be in a way that
delimits individual testresults in a way that makes them easily
extractable. Then if you want them to be ordered for e.g. diff'ing -
sort them.
Diez
More information about the Python-list
mailing list