Overlapping tests

Benjamin Niemann pink at odahoda.de
Tue Aug 24 13:53:10 EDT 2004


Mathias Waack wrote:
> Hi, 
> 
> I have some time consuming tests which could (and should) run
> simultaneously. Is there a way to achieve this behavior without
> using (self-coded) threads? Unittest seems to be designed to run one
> test after another, but not to run much tests at the same time. 
> 
> The only way I can see so far is to start all tests during setUp()
> and wait for each test-job in a job specific test() method. 
If I understand you correctly, what you really want is one test that 
tests the simultaneous executing of multiple tasks - a slighty different 
formulation of your problem that suggest a totally different 
implementation ;)



More information about the Python-list mailing list