Update xml_to_md.py
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user