You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
============================= test session starts ==============================
collecting ... collected 1 item
test_it.py::test_flaky_reruns
In session scope autouse fixture
In session scope autouse fixture
In session scope autouse fixture
PASSED
============================== 1 passed in 0.01s ===============================
Process finished with exit code 0
This can cause unexpected behaviors. In my case, I'm using the pytest-playwright package which has a session-scoped autouse fixture that deletes the output directory where traces are stored for failing tests. If a test fails and is rerun, any previously created trace files are deleted.
The text was updated successfully, but these errors were encountered:
When a test fails and is rerun, Flaky reruns session-scoped autouse fixtures. For example, running this test:
calls the fixture 3 times:
This can cause unexpected behaviors. In my case, I'm using the pytest-playwright package which has a session-scoped autouse fixture that deletes the output directory where traces are stored for failing tests. If a test fails and is rerun, any previously created trace files are deleted.
The text was updated successfully, but these errors were encountered: