You want pytest-xdist. I think Qxf2 explains it quite well: Qxf2 on Pytest-Xdist
Their Linux command-line is slightly too verbose for my tastes though; I use:
pytest -n <NUM>
where <NUM> is the number of parallel workers.
You want pytest-xdist. I think Qxf2 explains it quite well: Qxf2 on Pytest-Xdist
Their Linux command-line is slightly too verbose for my tastes though; I use:
pytest -n <NUM>
where <NUM> is the number of parallel workers.