Skip to content

Add a unique test counter to the final report #11370

@pomponchik

Description

@pomponchik

What's the problem this feature will solve?

Hello! I'm a big fan of pytest. However, I ran into a problem when using pytest.mark.parametrize.

The fact is that each individual parameter for the test is always displayed as a whole test in the final report. For me, these reports are an important indicator, and it is important for me to distinguish unique tests from tests that are generated by the transmitted parameters.

Describe the solution you'd like

Ideally I would like to see both numbers: how many unique tests and how many of them in total, taking into account parameterized ones. This can be done both by default and when using a special command line option, for example --show_unique_tests_number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: reportingrelated to terminal output and user-facing messages and errorstype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions