Merge pull request #7366 from gnikonorov/issue_7346

Allow users to provide version information to the required_plugins INI key
This commit is contained in:
Ronny Pfannschmidt
2020-06-15 20:19:05 +02:00
committed by GitHub
4 changed files with 78 additions and 5 deletions

View File

@@ -1562,12 +1562,14 @@ passed multiple times. The expected format is ``name=value``. For example::
.. confval:: required_plugins
A space separated list of plugins that must be present for pytest to run.
Plugins can be listed with or without version specifiers directly following
their name. Whitespace between different version specifiers is not allowed.
If any one of the plugins is not found, emit an error.
.. code-block:: ini
[pytest]
required_plugins = pytest-html pytest-xdist
required_plugins = pytest-django>=3.0.0,<4.0.0 pytest-html pytest-xdist>=1.0.0
.. confval:: testpaths