[Twisted-Python] Thoughts about testing
James Y Knight
foom at fuhm.net
Wed Oct 26 19:11:06 MDT 2005
On Oct 26, 2005, at 8:38 PM, Jonathan Lange wrote:
>> 3. Tests execute in predictable order.
>>
>
> Trial *ought* to execute tests in a predictable order. If it doesn't,
> please file a bug on http://www.twistedmatrix.com/bugs/, assign it to
> 'jml' with topic 'trial'. (Also, please include repro)
>
It does, it just doesn't execute them in *source* order, which is
sometimes annoying. I've groused about this before...I generally
write tests in order from simple->complex as well, and python happily
throws that order out before trial even gets a chance to see it.
Easily fixable by giving your test cases a numeric prefix.
Possibly "fixable" in trial with a horrible hack of looking up source
line numbers of classes/methods and sorting according to that, but
that seems rather...horrible.
James
More information about the Twisted-Python
mailing list