From f9161bd5e7897c22ea5f72c18b448e62bcdf7ea3 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 10 Feb 2018 12:39:36 -0500 Subject: Configurer plugins should be reported by --debug=sys --- coverage/control.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 71692de6..b82c8047 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), -- cgit v1.2.1