MCPcopy
hub / github.com/pytest-dev/pytest / pytest_collectreport

Method pytest_collectreport

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

Source from the content-addressed store, hash-verified

629 reporter.duration += getattr(report, "duration", 0.0)
630
631 def pytest_collectreport(self, report: TestReport) -> None:
632 if not report.passed:
633 reporter = self._opentestcase(report)
634 if report.failed:
635 reporter.append_collect_error(report)
636 else:
637 reporter.append_collect_skipped(report)
638
639 def pytest_internalerror(self, excrepr: ExceptionRepr) -> None:
640 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