Testing Python in Visual Studio Code
code.visualstudio.com › docs › pythonOpen the integrated terminal and install the pytest-xdist package. For more details, refer to the project's documentation page. For Windows. py-3-m pip install pytest-xdist. For macOS/Linux. python3 -m pip install pytest-xdist; Next, create a file named pytest.ini in your project directory and add the content below, specifying the number of CPUs to be used. For example, to set it up for 4 CPUs: