pytest-rerunfailures
pytest-rerunfailures copied to clipboard
pytest_runtest_logreport not called on reruns
It seems the pytest_runtest_logreport hook is not called for each phase if a previous phase failed. The break statement in the pytest_runtest_protocol implementation stops processing the rest of the reports.
What would you suggest to do instead?
I just noticed this issue.
Not sure if it is an issue, but it is at least unexpected behaviour.
I maintain pytest-html and whilst a "teardown" is executed - it's not reported by the pytest_runtest_logreport . This in turn means that the generated report is missing information.