Skip to content

Reporter¤

Reporter ¤

An interface to create events and results.

make_collect_report abstractmethod ¤

make_collect_report(report: CollectReport) -> CollectReport

Return a collect report event.

make_error_message abstractmethod ¤

make_error_message(
    report: CollectReport, call: CallInfo[Any]
) -> ErrorMessage

Return an error message event.

make_session_finish abstractmethod ¤

make_session_finish(exit_status: int) -> SessionFinish

Return a session finish event.

make_session_result abstractmethod ¤

make_session_result() -> SessionResult | None

Return the session result, if session is done, else returns None.

make_session_start abstractmethod ¤

make_session_start() -> SessionStart

Return a session start event.

make_test_case_finished abstractmethod ¤

make_test_case_finished(node_id: str) -> TestCaseFinished

Return a test case finished event.

make_test_case_step abstractmethod ¤

make_test_case_step(
    report: TestReport,
) -> TestCaseCall | TestCaseSetup | TestCaseTeardown

Return a test case step event.

make_warning_message abstractmethod ¤

make_warning_message(
    warning_message: WarningMessage,
    when: Literal["config", "collect", "runtest"],
    nodeid: str,
) -> WarningMessage

Return a warning message event.