pytest-xdist
Enable running tests in parallel to speed up test execution.
shellpip install pytest-xdist
Useful options that become available when running pytest:
| Option | Description |
|---|
-n | Specify the number of processes. |
--dist | Select the test distribution algorithm. load loadscope loadfile loadgroup |