def main(argv): cfg = get_config(argv) plugins = load_plugins(cfg.plugin_dirs, cfg.plugins) path_list = initialize_plugins(plugins, argv[1:], cfg.get_section('coverage_reporter')) validate_active_plugins(plugins) data = collect(plugins.get_collectors(), path_list, plugins.get_coverage_filter()) data = filter_coverage(data, plugins.get_filters()) report_paths = filter_reporting_paths(data.get_paths(), data, plugins.get_reporter_filter()) report(data, plugins.get_reporters(), report_paths)
def load_plugins(self, plugin_list): return load_plugins(self.cfg.plugin_dirs, plugin_list).plugins