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

Method pytest_runtest_logstart

src/_pytest/terminal.py:611–623  ·  view source on GitHub ↗
(
        self, nodeid: str, location: tuple[str, int | None, str]
    )

Source from the content-addressed store, hash-verified

609 self._add_stats("deselected", items)
610
611 def pytest_runtest_logstart(
612 self, nodeid: str, location: tuple[str, int | None, str]
613 ) -> None:
614 fspath, lineno, domain = location
615 # Ensure that the path is printed before the
616 # 1st test of a module starts running.
617 if self.showlongtestinfo:
618 line = self._locationline(nodeid, fspath, lineno, domain)
619 self.write_ensure_prefix(line, "")
620 self.flush()
621 elif self.showfspath:
622 self.write_fspath_result(nodeid, "")
623 self.flush()
624
625 def pytest_runtest_logreport(self, report: TestReport) -> None:
626 self._tests_ran = True

Callers

nothing calls this directly

Calls 4

_locationlineMethod · 0.95
write_ensure_prefixMethod · 0.95
flushMethod · 0.95
write_fspath_resultMethod · 0.95

Tested by

no test coverage detected