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 10:44:03 +02:00
parent 4b4255a6b5
commit 979ca8d7e1
+10
View File
@@ -239,6 +239,16 @@ def json_to_md_nested(json_path, md_path, allure_dir=None):
f.write("</details>\n\n")
if 'warnings' in data and data['warnings']:
f.write("## ⚠️ Warnings\n\n")
for i, warning in enumerate(data['warnings'], 1):
f.write(f"<details>\n<summary>Warning #{i}</summary>\n\n")
f.write("```\n")
for k, v in warning.items():
f.write(f"{k}: {v}\n")
f.write("```\n")
f.write("</details>\n\n")
def run_pytest_and_generate_banner_with_logs(md_path, log_path):
exit_code = pytest.main(["tests/"])