Update json_to_md.py
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 22s

This commit is contained in:
2025-07-15 15:01:27 +02:00
parent d2f236615f
commit ceea074d96
+3 -1
View File
@@ -238,6 +238,8 @@ def run_pytest_and_generate_banner_with_logs(md_path, log_path):
"> Unexpected result during test execution.\n\n"
)
'''
try:
with open(log_path, "r") as lf:
log_lines = lf.readlines()
@@ -278,7 +280,7 @@ def run_pytest_and_generate_banner_with_logs(md_path, log_path):
except Exception as e:
#print(f"❌ Failed to update markdown report: {e}")
return
'''
def main():
parser = argparse.ArgumentParser(description="Convert JSON test results to Markdown.")
parser.add_argument("--input", required=True, help="Path to pytest JSON file")