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

pytest_runtest_logreport not called on reruns

Open christiansandberg opened this issue 5 years ago • 2 comments

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.

christiansandberg avatar Apr 25 '20 05:04 christiansandberg

What would you suggest to do instead?

icemac avatar May 08 '20 14:05 icemac

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.

BeyondEvil avatar Jul 22 '23 00:07 BeyondEvil