in src/modules/render_html_report.py [0:0]
def run_module() -> None:
"""
Entry point of the module.
Sets up and runs the HTML report rendering module with the specified arguments.
"""
module_args = dict(
test_group_invocation_id=dict(type="str", required=True),
test_group_name=dict(type="str", required=True),
report_template=dict(type="str", required=True),
workspace_directory=dict(type="str", required=True),
)
module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)
renderer = HTMLReportRenderer(
test_group_invocation_id=module.params["test_group_invocation_id"],
test_group_name=module.params["test_group_name"],
report_template=module.params["report_template"],
workspace_directory=module.params["workspace_directory"],
)
test_case_results = renderer.read_log_file()
renderer.render_report(test_case_results)
module.exit_json(**renderer.get_result())