From 8b0c83e44e22d0ff5ec04c3da7af61fb264c8ded Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 16 Jul 2025 02:05:27 +0200 Subject: [PATCH] Update json_to_md.py --- json_to_md.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/json_to_md.py b/json_to_md.py index ae34faead..06cb59a9a 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -84,6 +84,19 @@ def json_to_md_nested(json_path, md_path): f.write(f"# ๐Ÿงช Test Report\n") f.write(f"*Generated on {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}*\n\n") + general_info = {} + for k, v in data.items(): + if k == "summary": + break + if k not in {"created", "exit_code", "tests", "collectors"} and not isinstance(v, (list, dict)): + general_info[k] = v + + if general_info: + f.write("## ๐Ÿงพ General Info\n") + for key, value in general_info.items(): + f.write(f"- **{key}**: {stringify(value)}\n") + f.write("\n") + if 'summary' in data: f.write("## ๐Ÿ“‹ Summary\n") for key, value in data['summary'].items():