def pytest_configure(self, config: Config): if not hasattr(config, '_tm4j_report'): self._config._tm4j_report = self self._load_config_params(config) # Activate json-report plugin for report generation plugin = JSONReport(config) config._json_report = plugin config.pluginmanager.register(plugin)