INNER CODE UNIT · Python
pytest_runtest_logreport
etchdroid/etchdroid · appium-tests/conftest.py:62
def pytest_runtest_logreport(report):
# Only the call phase: setup/teardown outcomes would double up on every test.
if report.when == "call":
mark(f"{report.outcome.upper()} {report.nodeid.split('::')[-1]}")
@pytest.hookimpl(wrapper=True)
def pytest_runtest_makereport(item, call):
report = yield
if report.when == "call" and report.failed and call.excinfo is not None:
report.longrepr = (
f"{call.excinfo.typename}: {_exception_message(call.excinfo.value)}\n\n"
f"{_repo_frames(call.excinfo.tb)}"
)
# The denoised logcat is written during teardown, so append it then.
item.stash[_CLEAN_REPORT] = report
elif report.when == "teardown":