pytest icon indicating copy to clipboard operation
pytest copied to clipboard

Documentation shows incorrect pytest output color for subtests

Open tsvikas opened this issue 1 month ago • 2 comments

Location: https://docs.pytest.org/en/stable/how-to/subtests.html#subtests The documentation shows:

$ pytest -q test_subtest.py
uuuuuF                                                               [100%]

where all the u characters are green (passing). Actual behavior: Running the example produces mixed results - some u are green (passed subtests) and some are red (failed subtests).

The documentation should reflect the mixed pass/fail colors. (it might be an issue in the code-block:: pytest style)

Also, we might want to use different characters for passing vs failing subtests to support non-color terminal outputs

tsvikas avatar Nov 09 '25 12:11 tsvikas