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")