Files
slic/conftest.py
T
tligui_y b8434c437f
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 26s
Update conftest.py
2025-07-17 10:20:02 +02:00

20 lines
547 B
Python

# conftest.py
import json
runtime_params = []
def pytest_runtest_makereport(item, call):
if call.when != "call":
return
entry = {"nodeid": item.nodeid, "params": {}}
if hasattr(item, "callspec"):
entry["params"] = item.callspec.params
elif hasattr(item, "_request"):
entry["params"] = item._request.funcargs
runtime_params.append(entry)
def pytest_sessionfinish(session, exitstatus):
with open("ci-reports/markdown/runtime_params.json", "w") as f:
json.dump(runtime_params, f, indent=2)