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

Function pytest_configure

src/_pytest/junitxml.py:421–435  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

419
420
421def pytest_configure(config: Config) -> None:
422 xmlpath = config.option.xmlpath
423 # Prevent opening xmllog on worker nodes (xdist).
424 if xmlpath and not hasattr(config, "workerinput"):
425 junit_family = config.getini("junit_family")
426 config.stash[xml_key] = LogXML(
427 xmlpath,
428 config.option.junitprefix,
429 config.getini("junit_suite_name"),
430 config.getini("junit_logging"),
431 config.getini("junit_duration_report"),
432 junit_family,
433 config.getini("junit_log_passing_tests"),
434 )
435 config.pluginmanager.register(config.stash[xml_key])
436
437
438def pytest_unconfigure(config: Config) -> None:

Callers

nothing calls this directly

Calls 3

LogXMLClass · 0.85
registerMethod · 0.80
getiniMethod · 0.45

Tested by

no test coverage detected