(
dt: float,
serious: bool,
messages_by_file: dict[str | None, list[str]],
path: str,
version: str,
platform: str,
)
| 314 | |
| 315 | |
| 316 | def write_junit_xml( |
| 317 | dt: float, |
| 318 | serious: bool, |
| 319 | messages_by_file: dict[str | None, list[str]], |
| 320 | path: str, |
| 321 | version: str, |
| 322 | platform: str, |
| 323 | ) -> None: |
| 324 | xml = _generate_junit_contents(dt, serious, messages_by_file, version, platform) |
| 325 | |
| 326 | # creates folders if needed |
| 327 | xml_dirs = os.path.dirname(os.path.abspath(path)) |
| 328 | os.makedirs(xml_dirs, exist_ok=True) |
| 329 | |
| 330 | with open(path, "wb") as f: |
| 331 | f.write(xml.encode("utf-8")) |
| 332 | |
| 333 | |
| 334 | class IdMapper: |
no test coverage detected
searching dependent graphs…