parent
248093e61a
commit
e75b1b9ee6
|
@ -209,11 +209,16 @@ class TerminalReporter:
|
||||||
py.path.local(py.__file__).dirpath(), rev))
|
py.path.local(py.__file__).dirpath(), rev))
|
||||||
if self.config.option.traceconfig:
|
if self.config.option.traceconfig:
|
||||||
plugins = []
|
plugins = []
|
||||||
for x in self.config.pluginmanager.plugins:
|
for plugin in self.config.pluginmanager.comregistry:
|
||||||
if isinstance(x, str) and x.startswith("pytest_"):
|
name = plugin.__class__.__name__
|
||||||
plugins.append(x[7:])
|
if name.endswith("Plugin"):
|
||||||
|
name = name[:-6]
|
||||||
|
#if name == "Conftest":
|
||||||
|
# XXX get filename
|
||||||
|
plugins.append(name)
|
||||||
else:
|
else:
|
||||||
plugins.append(str(x)) # XXX display conftest plugins more nicely
|
plugins.append(str(plugin))
|
||||||
|
|
||||||
plugins = ", ".join(plugins)
|
plugins = ", ".join(plugins)
|
||||||
self.write_line("active plugins: %s" %(plugins,))
|
self.write_line("active plugins: %s" %(plugins,))
|
||||||
for i, testarg in py.builtin.enumerate(self.config.args):
|
for i, testarg in py.builtin.enumerate(self.config.args):
|
||||||
|
|
Loading…
Reference in New Issue