Complete the code to install pytest-xdist using pip.
pip install [1]The correct package name to install pytest-xdist is pytest-xdist.
Complete the command to check the installed version of pytest-xdist.
pytest --version | grep [1]Using grep xdist filters the version output to show pytest-xdist details.
Fix the error in the command to install pytest-xdist with pip.
pip install [1]The correct package name uses a hyphen: pytest-xdist. Underscores or missing hyphens cause errors.
Fill both blanks to run tests in parallel using 4 CPUs with pytest-xdist.
pytest -n [1] --dist=[2]
Use -n 4 to run tests on 4 CPUs and --dist=auto for automatic distribution.
Fill all three blanks to install pytest-xdist, verify installation, and run tests in parallel.
pip install [1] pytest --version | grep [2] pytest -n [3]
First install pytest-xdist, then check with grep xdist, and finally run tests on 4 CPUs with -n 4.