Update json_to_md.py
This commit is contained in:
+9
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user