Support for running tests in parallel with pytest is available through the pytest-xdist package.
pytest-xdist provides support for parallel testing.
- To enable it on Windows:
py -3 -m pip install pytest-xdist
- Create a file
pytest.iniin your project directory and specify in it the number of CPUs to be used (e.g. 4):[pytest] addopts=-n4 - Run your tests



