This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user