Support for pytest parallel execution
complete
Krishna Yadav
We we run pytest in parallel it errors out & the run doesn't complete.
Command used:
pytest --workers auto --qase --qase-api-token=<token> --qase-project=<code> --qase-testplan=<plan> tests/
error detail:
INTERNALERROR> requests.exceptions.SSLError: None: Max retries exceeded with url: /v1/result/WEBEDI/130 (Caused by None)
For more detail pls see the issue raised in github: https://github.com/qase-tms/qase-python/issues/33
Ilya Volkov
complete
Bob Lewis
Krishna Yadav You could try using pytest-xdist or pytest-forked instead of pytest-parallel. pytest-forked only works on Linux environments just a heads up. My company successfully used both pytest-xdist and pytest-forked to run tests in parallel and send results to Qase. We had better performance success with pytest-xdist, but that was mainly due to how we setup our testing environments.
Krishna Yadav
Hi Team,
any updates on this feature request?
Ilya Volkov
Krishna Yadav: Hi Krishna! Let me ask the engineering team if there's any news regarding that. Thank you for your patience!
Krishna Yadav
Ilya Volkov: I have chosen pytest-parallel over pytest-xdist due to the following reason:
pytest-xdist is great to run tests that:
aren't threadsafe
perform poorly when multithreaded
need state isolation
pytest-parallel is better for some use cases (like Selenium tests) that:
can be threadsafe
can use non-blocking IO for http requests to make it performant
manage little or no state in the Python environment
Put simply, pytest-xdist does parallelism while pytest-parallel does parallelism and concurrency.
Can we get support for pytest-parallel as well?
Thanks in Advance.