Skip to content

The short test summary info should use pytest_report_teststatus hook data #4667

@wimglenn

Description

@wimglenn

https://docs.pytest.org/en/latest/reference.html#_pytest.hookspec.pytest_report_teststatus

@hookspec(firstresult=True)
def pytest_report_teststatus(report):
    """ return result-category, shortletter and verbose word for reporting.

    Stops at first non-None result, see :ref:`firstresult` """

Short test summary info that you get (e.g. with pytest -rap) should use the hook result.

Instead it uses data from a weird place - some hardcoded strings in a seemingly unrelated module _pytest/skipping.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions