(report)
| 2213 | |
| 2214 | |
| 2215 | def pytest_runtest_logreport(report): |
| 2216 | with suppress(Exception): |
| 2217 | if _pytest_config: # Global variable |
| 2218 | htmlpath = _pytest_config.getoption("--html", default=None) |
| 2219 | if htmlpath: |
| 2220 | # The HTML report option is enabled |
| 2221 | if report.when == "teardown": |
| 2222 | if getattr(sb_config, "_multithreaded", None): |
| 2223 | # Multi-threaded tests |
| 2224 | from filelock import FileLock |
| 2225 | dash_lock = FileLock(constants.Report.LOCKFILE) |
| 2226 | with dash_lock: |
| 2227 | _fix_html_report(htmlpath) |
| 2228 | else: |
| 2229 | # Single-threaded tests |
| 2230 | _fix_html_report(htmlpath) |
| 2231 | |
| 2232 | |
| 2233 | def _fix_html_report(report_path): |
nothing calls this directly
no test coverage detected
searching dependent graphs…