From da4e0e72fc3e44c4430ec723a8ece1b5ab940cff Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 10 Jul 2025 09:57:52 +0200 Subject: [PATCH] Update json_to_md.py --- json_to_md.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/json_to_md.py b/json_to_md.py index 14d53c8c9..c6fb45d4c 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -46,7 +46,15 @@ def json_to_adaptive_md(json_path, md_path): # Métadonnées communes if "outcome" in test: - f.write(f"- **Statut:** `{test['outcome']}`\n") + outcome_value = test["outcome"] + outcome_icons = { + "passed": "✅", + "skipped": "⏭️", + "failed": "❌", + "error": "❗", + } + emoji = outcome_icons.get(outcome_value) + f.write(f"- **Statut:** {emoji} `{outcome_value}`\n") if "call" in test and "duration" in test["call"]: f.write(f"- **Durée:** `{test['call']['duration']:.3f}`s\n")