(
self, many_tests_files, pytester: Pytester, monkeypatch
)
| 2086 | output.stdout.re_match_lines([r"\.{20} \s+ \[20/20\]"]) |
| 2087 | |
| 2088 | def test_xdist_verbose( |
| 2089 | self, many_tests_files, pytester: Pytester, monkeypatch |
| 2090 | ) -> None: |
| 2091 | pytest.importorskip("xdist") |
| 2092 | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False) |
| 2093 | output = pytester.runpytest("-n2", "-v") |
| 2094 | output.stdout.re_match_lines_random( |
| 2095 | [ |
| 2096 | r"\[gw\d\] \[\s*\d+%\] PASSED test_bar.py::test_bar\[1\]", |
| 2097 | r"\[gw\d\] \[\s*\d+%\] PASSED test_foo.py::test_foo\[1\]", |
| 2098 | r"\[gw\d\] \[\s*\d+%\] PASSED test_foobar.py::test_foobar\[1\]", |
| 2099 | ] |
| 2100 | ) |
| 2101 | output.stdout.fnmatch_lines_random( |
| 2102 | [ |
| 2103 | line.translate(TRANS_FNMATCH) |
| 2104 | for line in [ |
| 2105 | "test_bar.py::test_bar[0] ", |
| 2106 | "test_foo.py::test_foo[0] ", |
| 2107 | "test_foobar.py::test_foobar[0] ", |
| 2108 | "[gw?] [ 5%] PASSED test_*[?] ", |
| 2109 | "[gw?] [ 10%] PASSED test_*[?] ", |
| 2110 | "[gw?] [ 55%] PASSED test_*[?] ", |
| 2111 | "[gw?] [ 60%] PASSED test_*[?] ", |
| 2112 | "[gw?] [ 95%] PASSED test_*[?] ", |
| 2113 | "[gw?] [100%] PASSED test_*[?] ", |
| 2114 | ] |
| 2115 | ] |
| 2116 | ) |
| 2117 | |
| 2118 | def test_capture_no(self, many_tests_files, pytester: Pytester) -> None: |
| 2119 | output = pytester.runpytest("-s") |
nothing calls this directly
no test coverage detected