Update json_to_md.py
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 51s
Run Pytest with Allure and Coverage Reports / deploy (push) Has been skipped

This commit is contained in:
2025-07-10 09:57:52 +02:00
parent b7b57069d5
commit da4e0e72fc
+9 -1
View File
@@ -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")