-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add a unique test counter to the final report #11370
Copy link
Copy link
Closed as not planned
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated 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 featureproposal for a new feature, often to gather opinions or design the API around the new feature
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated 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 featureproposal for a new feature, often to gather opinions or design the API around the new feature
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.