I have to run the same test against different hosts in parallel. Currently, i'm making a bunchof pytest.main() calls. But this is not run in parallel and results are not aggregated. This is the content of runtest.py:
pytest.main('--conf=c1.txt')
pytest.main('--conf=c2.txt')
pytest.main('--conf=c3.txt')
I have just one test_host.py which looks something like:
test_pinghost(conf):
# pings a host in config
Is there a way to run this in parallel and aggregate results? PS:the config filejust contains the host IP
Please use http://pytest.readthedocs.org/en/2.0.3/xdist.html, it enables pytest to run tests across multiple processes/machines
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With