Open aklajnert opened 5 years ago
I think both of your suggested solutions for this are fine.
i propose that we accept distribution names to disable all plugins of that distribution
we still need a way to distinguish between actual module names, entry-point names and python object names
i would like to propose that we use any name without a collon as whatever works,
for due diligence warn if its ambiguous, and additionally have no-mod/ep/dist:
for picking exactly whats wanted
i believe this one needs to bubble into pluggy
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.