Skip to content

pytest_broadcaster_set_reporter¤

pytest_broadcaster_set_reporter ¤

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

Set your own reporter.

This funciton is called on plugin initialization.

For instance, in conftest.py:

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

Then run pytest without any option:

pytest