Art of Unit Testing

Delaney, Timothy (Tim) tdelaney at avaya.com
Wed Aug 3 18:12:13 EDT 2005


phil hunt wrote:

>> tests?  If they were unit tests, they should take only a few minutes
>> to run, total, 
> 
> Eek! Seconds, more like.

Unfortunately, when you've got umteen zillion of them, having
individually fast test suites doesn't help much :( The complete test
suite for my current project takes approx 10 minutes to run. Test suites
for most individual packages is on the order of seconds, but they do add
up.

Of course, having slow test suites is much much worse ...

And there's the odd test which needs to take longer, normally because
it's timing related - for example, you may want to test that changing a
timeout works over various time periods.

Tim Delaney



More information about the Python-list mailing list