How to run tests in Pytest in parallel inside the Docker container?
Try to use boxed
processes + tx
flag: (--tx 3*popen//python=python3.6 --boxed
, so run your tests with the command below:
pytest -v --headless=True --production=True --browser=chrome --dist=loadfile --junitxml=test.xml --tx 3*popen//python=python3.6 --boxed
More information of how you can run your tests in parallel is available under that SO answer .
Good Luck !