pytest-rerunfailures
pytest-rerunfailures copied to clipboard
Run dependency tests
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)?
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.