MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_collectreport

Method pytest_collectreport

src/_pytest/junitxml.py:627–633  ·  view source on GitHub ↗
(self, report: TestReport)

Source from the content-addressed store, hash-verified

625 reporter.duration += getattr(report, "duration", 0.0)
626
627 def pytest_collectreport(self, report: TestReport) -> None:
628 if not report.passed:
629 reporter = self._opentestcase(report)
630 if report.failed:
631 reporter.append_collect_error(report)
632 else:
633 reporter.append_collect_skipped(report)
634
635 def pytest_internalerror(self, excrepr: ExceptionRepr) -> None:
636 reporter = self.node_reporter("internal")

Callers 4

perform_collectMethod · 0.45
collectMethod · 0.45
genitemsMethod · 0.45
test_make_hook_recorderFunction · 0.45

Calls 3

_opentestcaseMethod · 0.95
append_collect_errorMethod · 0.80

Tested by 1

test_make_hook_recorderFunction · 0.36