Skip to content

pytest_broadcaster_set_reporter¤

pytest_broadcaster_set_reporter ¤

pytest_broadcaster_set_reporter(
    set: Callable[[Reporter], None]
) -> None

Called on plugin initialization.

Use it to set your own reporter.

For instance, in conftest.py:

def pytest_broadcaster_set_reporter(set_reporter):
    set(MyReporter())

Then run pytest without any option:

pytest