0
0
PyTesttesting~10 mins

Installing and managing plugins in PyTest - Interactive Practice

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

Complete the code to install the pytest plugin using pip.

PyTest
pip install pytest-[1]
Drag options to blanks, or click blank then click option'
Acov
Bmock
Chtml
Drandom
Attempts:
3 left
💡 Hint
Common Mistakes
Using plugin names that do not exist or are unrelated.
Forgetting to add 'pytest-' prefix.
2fill in blank
medium

Complete the code to list all installed pytest plugins.

PyTest
pytest --[1]
Drag options to blanks, or click blank then click option'
Aplugin-list
Bshow-plugins
Cplugins
Dlist-plugins
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect or non-existing command options.
Confusing plugin listing with test listing.
3fill in blank
hard

Fix the error in the command to uninstall a pytest plugin.

PyTest
pip [1] pytest-cov
Drag options to blanks, or click blank then click option'
Aremove
Buninstall
Cdelete
Derase
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' or 'delete' which are not valid pip commands.
Forgetting to use pip to uninstall.
4fill in blank
hard

Fill both blanks to write a pytest command that runs tests with the coverage plugin and outputs a report.

PyTest
pytest --[1] --cov-report=[2]
Drag options to blanks, or click blank then click option'
Acov
Bhtml
Cxml
Dverbose
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong coverage flags.
Confusing report formats.
5fill in blank
hard

Fill all three blanks to write a pytest command that runs tests, shows detailed output, and uses the random order plugin.

PyTest
pytest --[1] --[2] --random-order=[3]
Drag options to blanks, or click blank then click option'
Averbose
Bcapture=no
Crandom
Dquiet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'quiet' instead of 'verbose'.
Not disabling output capture when needed.
Incorrect plugin option for test order.