summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-02-10 12:39:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-02-10 12:39:36 -0500
commit50352aa21ae4ad3943c7402cdc129ee862403dc1 (patch)
treec564b6a89da750f1c3468bb2a8ec0c1f32bb2159 /coverage/control.py
parentbcf1e4a137561104fc454aa57f478cd6d50c6ca8 (diff)
downloadpython-coveragepy-50352aa21ae4ad3943c7402cdc129ee862403dc1.tar.gz
Configurer plugins should be reported by --debug=sys
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 71692de..b82c804 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -1152,12 +1152,15 @@ class Coverage(object):
self._init()
- ft_plugins = []
- for ft in self.plugins.file_tracers:
- ft_name = ft._coverage_plugin_name
- if not ft._coverage_enabled:
- ft_name += " (disabled)"
- ft_plugins.append(ft_name)
+ def plugin_info(plugins):
+ """Make an entry for the sys_info from a list of plug-ins."""
+ entries = []
+ for plugin in plugins:
+ entry = plugin._coverage_plugin_name
+ if not plugin._coverage_enabled:
+ entry += " (disabled)"
+ entries.append(entry)
+ return entries
info = [
('version', covmod.__version__),
@@ -1165,7 +1168,8 @@ class Coverage(object):
('cover_paths', self.cover_paths),
('pylib_paths', self.pylib_paths),
('tracer', self.collector.tracer_name()),
- ('plugins.file_tracers', ft_plugins),
+ ('plugins.file_tracers', plugin_info(self.plugins.file_tracers)),
+ ('plugins.configurers', plugin_info(self.plugins.configurers)),
('config_files', self.config.attempted_config_files),
('configs_read', self.config.config_files),
('data_path', self.data_files.filename),