@@ -256,7 +256,25 @@ def test_report_on_without_reruns(self, testdir):
256256 assert not self ._substring_in_output ('RERUN test_report_on_without_reruns.py::test_flaky_test' , result .errlines )
257257 assert not self ._substring_in_output ('1 rerun' , result .outlines )
258258
259- # pytest-xdist -n compatibility tests
259+ def test_verbose_statuses_with_reruns (self , testdir ):
260+ test_file = self .variety_of_tests (testdir )
261+
262+ result = testdir .runpytest ('--reruns=2' , '--verbose' )
263+
264+ assert self ._substring_in_output (' 1 passed' , result .outlines )
265+ assert self ._substring_in_output ('test_verbose_statuses_with_reruns.py:3: test_fake_pass PASSED' , result .outlines )
266+
267+ assert self ._substring_in_output ('1 failed' , result .outlines )
268+ assert self ._substring_in_output ('test_verbose_statuses_with_reruns.py:7: test_fake_fail FAILED' , result .outlines )
269+
270+ assert self ._substring_in_output ('1 xpassed' , result .outlines )
271+ assert self ._substring_in_output ('test_verbose_statuses_with_reruns.py:16: test_xpass XPASS' , result .outlines )
272+
273+ assert self ._substring_in_output ('1 xfailed' , result .outlines )
274+ assert self ._substring_in_output ('test_verbose_statuses_with_reruns.py:11: test_xfail xfail' , result .outlines )
275+
276+ assert self ._substring_in_output ('1 rerun' , result .outlines )
277+ assert self ._substring_in_output ('test_verbose_statuses_with_reruns.py:21: test_flaky_test RERUN' , result .outlines )
260278
261279 def test_report_off_with_reruns_with_xdist (self , testdir ):
262280 '''This test is identical to test_report_off_with_reruns except it
0 commit comments