September 2017
Intermediate to advanced
222 pages
5h 1m
English
pytest plugins are installed with pip, just like other Python packages. However, you can use pip in several different ways to install plugins.
As PyPI is the default location for pip, installing plugins from PyPI is the easiest method. Let’s install the pytest-cov plugin:
| | $ pip install pytest-cov |
This installs the latest stable version from PyPI.
If you want a particular version of a plugin, you can specify the version after ‘==‘:
| | $ pip install pytest-cov==2.4.0 |
Packages on PyPI are distributed as zipped files with the extensions .tar.gz and/or .whl. These are often referred to as “tar balls” and “wheels.” ...
Read now
Unlock full access