Skip to content

Documentation shows incorrect pytest output color for subtests #13902

@tsvikas

Description

@tsvikas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: subtestsrelated to the subtests builtin plugintype: bugproblem that needs to be addressedtype: docsdocumentation improvement, missing or needing clarification

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions