Overlapping tests

M

Mathias Waack

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.

Mathias
 
B

Benjamin Niemann

Mathias said:
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 ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,204
Messages
2,571,063
Members
47,670
Latest member
micheljon

Latest Threads

Top