--junitxml should automatically create directories for the xml file
(pytester: Pytester)
| 1106 | |
| 1107 | |
| 1108 | def test_logxml_makedir(pytester: Pytester) -> None: |
| 1109 | """--junitxml should automatically create directories for the xml file""" |
| 1110 | pytester.makepyfile( |
| 1111 | """ |
| 1112 | def test_pass(): |
| 1113 | pass |
| 1114 | """ |
| 1115 | ) |
| 1116 | result = pytester.runpytest("--junitxml=path/to/results.xml") |
| 1117 | assert result.ret == 0 |
| 1118 | assert pytester.path.joinpath("path/to/results.xml").exists() |
| 1119 | |
| 1120 | |
| 1121 | def test_logxml_check_isdir(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected