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

This commit is contained in:
2025-07-17 10:30:40 +02:00
parent da2114270e
commit 97d30d4812
+5 -1
View File
@@ -1,6 +1,7 @@
# conftest.py
import json
import os
runtime_params = []
@@ -18,6 +19,9 @@ def pytest_runtest_makereport(item, call):
entry["params"] = request.funcargs
runtime_params.append(entry)
def pytest_sessionfinish(session, exitstatus):
os.makedirs("ci-reports/markdown", exist_ok=True)
print("✅ Dumping runtime_params.json...")
with open("ci-reports/markdown/runtime_params.json", "w") as f:
json.dump(runtime_params, f, indent=2)