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

Method pytest_collectreport

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

Source from the content-addressed store, hash-verified

798 self.write("collecting ... ", flush=True, bold=True)
799
800 def pytest_collectreport(self, report: CollectReport) -> None:
801 if report.failed:
802 self._add_stats("error", [report])
803 elif report.skipped:
804 self._add_stats("skipped", [report])
805 items = [x for x in report.result if isinstance(x, Item)]
806 self._numcollected += len(items)
807 if self.isatty():
808 self.report_collect()
809
810 def report_collect(self, final: bool = False) -> None:
811 if self.config.option.verbose < 0:

Callers

nothing calls this directly

Calls 3

_add_statsMethod · 0.95
report_collectMethod · 0.95
isattyMethod · 0.45

Tested by

no test coverage detected