Update xml_to_md.py
Run Pytest with Allure and Coverage Reports / tests (push) Failing after 58s
Run Pytest with Allure and Coverage Reports / deploy (push) Has been skipped

This commit is contained in:
2025-07-09 21:00:30 +02:00
parent 520810f011
commit 59161632f1
-3
View File
@@ -5,7 +5,6 @@ import argparse
import html
def parse_junit_xml(xml_path):
"""Extrait chaque détail technique des rapports XML, y compris les erreurs système."""
tree = ET.parse(xml_path)
root = tree.getroot()
@@ -95,7 +94,6 @@ def parse_junit_xml(xml_path):
return test_data
def generate_markdown_report(test_data, output_path):
"""Génère un rapport Markdown ultra-détaillé avec tous les éléments techniques."""
md_content = f"""# 🛠️ Test Report - Technical Post-Mortem
**Generated:** {datetime.now().strftime("%Y-%m-%d %H:%M:%S")}
**Pytest Version:** {test_data["metadata"]["pytest_version"]}
@@ -170,7 +168,6 @@ def generate_markdown_report(test_data, output_path):
f.write(md_content)
def process_test_reports(input_dir, output_file):
"""Traite tous les rapports XML dans le dossier."""
combined_data = {
"metadata": {},
"summary": {"total": 0, "passed": 0, "failed": 0, "errors": 0, "skipped": 0, "time": 0},