Update json_to_md.py
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 37s

This commit is contained in:
2025-07-15 11:52:23 +02:00
parent f01400d6b1
commit b2ebe1a597
+7 -4
View File
@@ -6,6 +6,7 @@ import os
import re
import pytest
from pytest import ExitCode
import traceback
def stringify(obj):
if obj is None or obj == "":
@@ -64,10 +65,12 @@ def load_allure_metadata(allure_test_cases_dir):
"severity": severity
}
print(f"Allure file: {file} loaded ✔️")
#except Exception as e:
# Juste le type d'exception, pas le détail
#print(f"Allure file: {file} failed ❌ (reason: {type(e).__name__})")
return allure_data
except Exception as e:
short_summary = traceback.format_exception_only(type(e), e)[-1].strip()
print(f"Allure file: {file} failed ❌ (reason: {short_summary})")
return allure_data
def json_to_md_nested(json_path, md_path, allure_dir=None):