Misleading plugin names in test session details #5661
Labels
topic: reporting
related to terminal output and user-facing messages and errors
type: enhancement
new feature or API change, should be merged into features branch
Here is sample test session details from my environment:
The last line displays a list of loaded plugins, which is very useful. According to the documentation, in order to disable a plugin, you need to use the
-p
argument, e.g.pytest -p no:<plugin-name>
.The problem is that not all plugin names are accurately reflected in the
plugins
section of the summary, to be useful with-p
argument. For example, to disablecov
you can use-p no:cov
, but to disablebdd
you need to use-p no:pytest-bdd
. I have no idea how to disable thepyfakefs
plugin. Neither-p no:pytest-pyfakefs
nor-p no:pyfakefs
works. I see no other option for retrieving that information other than debugging pytest itself.I see two possible solutions here:
plugins
section in the test session details display the real plugin name (e.g.pytest-bdd
instead ofbdd
,plugins
section with-p no:<plugin-name>
argument.The text was updated successfully, but these errors were encountered: