pytest-rerunfailures icon indicating copy to clipboard operation
pytest-rerunfailures copied to clipboard

Run dependency tests

Open GrebenshchikovArtem opened this issue 3 years ago • 1 comments

Hello. How i can rerun dependency tests? For example:

@pytest.mark.dependency() def test_1():

@pytest.mark.dependency(depends=['test_1']) def test_2():

@pytest.mark.dependency(depends=['test_2']) def test_3():

if fail test_3, how i can rerun all dependency tests(test_1, test_2, test_3)?

GrebenshchikovArtem avatar Dec 23 '22 10:12 GrebenshchikovArtem

Currently there is no way to achieve this. I did not even know about that @pytest.mark.dependency() decorator. I feel it is out of scope for this project to support rerunning tests which did not actually fail.

icemac avatar Jan 19 '23 07:01 icemac