I’m writing a hookwrapper for pytest_runtest_makereport and want my logic to execute after pytest’s internal skipping logic.
I tried both:
@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_makereport(item: Item, call: CallInfo):
...
and
@pytest.hookimpl(hookwrapper=True, trylast=True)
def pytest_runtest_makereport(item: Item, call: CallInfo):
...
but my code doesn’t seem to run after the internal xfail/skipping processing.
I need guidance on how to ensure my wrapper executes last so I can safely adjust rep.outcome or rep.wasxfail.