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

Method pytest_collectreport

src/_pytest/terminal.py:633–641  ·  view source on GitHub ↗
(self, report: CollectReport)

Source from the content-addressed store, hash-verified

631 self.write("collecting ... ", flush=True, bold=True)
632
633 def pytest_collectreport(self, report: CollectReport) -> None:
634 if report.failed:
635 self._add_stats("error", [report])
636 elif report.skipped:
637 self._add_stats("skipped", [report])
638 items = [x for x in report.result if isinstance(x, Item)]
639 self._numcollected += len(items)
640 if self.isatty:
641 self.report_collect()
642
643 def report_collect(self, final: bool = False) -> None:
644 if self.config.option.verbose < 0:

Callers

nothing calls this directly

Calls 2

_add_statsMethod · 0.95
report_collectMethod · 0.95

Tested by

no test coverage detected