0
0
PyTesttesting~10 mins

pytest-xdist installation - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install pytest-xdist using pip.

PyTest
pip install [1]
Drag options to blanks, or click blank then click option'
Apytest
Bxdist-pytest
Cpytest-xdist
Dpytest-xd
Attempts:
3 left
💡 Hint
Common Mistakes
Using just 'pytest' instead of 'pytest-xdist'.
Mixing the order of 'xdist' and 'pytest' in the package name.
2fill in blank
medium

Complete the command to check the installed version of pytest-xdist.

PyTest
pytest --version | grep [1]
Drag options to blanks, or click blank then click option'
Axdist
Bversion
Cinstall
Dpytest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pytest' which shows all pytest info, not just xdist.
Using 'version' or 'install' which do not filter the output.
3fill in blank
hard

Fix the error in the command to install pytest-xdist with pip.

PyTest
pip install [1]
Drag options to blanks, or click blank then click option'
Apytest-xdist
Bpytest_xdist
Cpytestxdist
Dpytest-x_dist
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores instead of hyphens.
Combining words without separators.
4fill in blank
hard

Fill both blanks to run tests in parallel using 4 CPUs with pytest-xdist.

PyTest
pytest -n [1] --dist=[2]
Drag options to blanks, or click blank then click option'
A4
Bloadscope
Cloadfile
Dauto
Attempts:
3 left
💡 Hint
Common Mistakes
Using distribution modes like 'loadscope' or 'loadfile' without understanding their effect.
Setting -n to a non-numeric value.
5fill in blank
hard

Fill all three blanks to install pytest-xdist, verify installation, and run tests in parallel.

PyTest
pip install [1]
pytest --version | grep [2]
pytest -n [3]
Drag options to blanks, or click blank then click option'
Apytest-xdist
Bxdist
C4
Dpytest
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up package names or grep filters.
Using invalid numbers for parallel test runs.