Using the py.test -n option, the txnodes seem to be ready to receive tests.
The only way I've seen tests distributed to the nodes is if the tests are all in separate files, e.g. test_spam1.py, test_spam2.py, etc. Even then, it distributes unevenly with some nodes never getting any tests.
If there is only one file with multiple tests, e.g. test_spam.py contains test_eggs1(), test_eggs2(), etc., it appears that all tests go to one node.
If there are generated tests (using pytest_generate_tests(metafunc)), all these tests also go to one node.
Is this the way it works, is this a bug, or am I doing something wrong?
Python version 2.6.3
py.test version 1.0.2
Mac OS X 10.6.1
Windows XP SP2