diff --git a/conftest.py b/conftest.py index 4dc52630..7e52405b 100644 --- a/conftest.py +++ b/conftest.py @@ -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)