diff --git a/conftest.py b/conftest.py index f0d10b8..6fe0aed 100644 --- a/conftest.py +++ b/conftest.py @@ -103,6 +103,9 @@ def pytest_runtest_makereport(item, call): runtime_params.append(entry) +def pytest_configure(config): + sys.stdout = open("outputs/test-prints.log", "a") + def pytest_sessionfinish(session, exitstatus): os.makedirs("markdown", exist_ok=True) with open("markdown/runtime_params.json", "w") as f: