Closed rogeriochaves closed 4 months ago
hello there 👋
when using this with pytest:
@pytest.mark.flaky(max_runs=3) def test_example(): print("Running test_example") assert False
no matter what number I put on max_runs, it only ever retries once:
max_runs
=============================================================================== short test summary info =============================================================================== FAILED tests/test_simple_assertion.py::test_example - assert False ======================================================================= 1 failed, 34 warnings, 1 rerun in 2.15s =======================================================================
wait, nevermind, for some reason pytest-rerunfailures was also installed a poetry didn't remove it, it actually works as expected, sorry!
pytest-rerunfailures
hello there 👋
when using this with pytest:
no matter what number I put on
max_runs
, it only ever retries once: