DtcReportGenerator

class mtf.diag_port.dtc_report_generator.DtcReportGenerator
diag_manager = <mtf.diag_port.diag_manager.DiagManagerWrapper object>
classmethod write_report(with_details=False, target_list: list[str] | None = None)

write the dtc report and return the dtc report as a dict. target_list : list of targets , if none dtc report will be generated for all targets in json config

classmethod addToContext(context)

Add a dictionary to the context : Information that will be written in the report :param context: information to write in the report :type context: dict

classmethod apply_external_config(force=False)
classmethod build_txt_report(functions=None)

Generate string from the template and return the rendered value The generation is done via Jinja2 :param functions: list of function to use in the template. :type functions: List

classmethod build_value(raw_value)
context = {}
classmethod generate_report_from_template(functions=None)

Generate report from the template and write the result in a file. The generation is done via Jinja2 :param functions: list of function to use in the template. :type functions: List

classmethod get_properties()
classmethod init_paths(workspace, search_path)
classmethod init_report(path, template, report)

Initialize parameters to generate the report :param path: template path :type path: str :param template: the template file name :type template: str :param report: the report path :type report: str

is_configured = False
report_path = ''
search_path = '.'
template_filename = ''
template_path = ''
workspace_path = '.'