I can't run nose with several processes programmatically.
This works...:
PYTHONPATH="/home/developer/Downloads/unittest2-0.5.1:" nosetests --processes=4
It spawns 4 browsers at once.
When running this in eclipse however, it runs them one by one.
nose.run(defaultTest="",argv=['--processes=4','--verbose', '--process-timeout=30'])
I know the arguments are kicking in because I can see a difference with the verbose argument.
The answer was a bit tricky!
For some reason, nose.run ignores the first argument it receives.
This actually works:
nose.run(defaultTest="",argv=['','--processes=4','--verbose', '--process-timeout=90'])
This answers the question's dilemma perfectly: "I know the arguments are kicking in because I can see a difference with the verbose argument." :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.