Skip to content

Display names of parameterized tests in test explorer #4769

@DonJayamanne

Description

@DonJayamanne

Assume we have a pamraterized test test_adding_numbers(a, b).
We have parameters [1,2], [2,4], [4,9]
The UI will display the nodes as follows:
Screen Shot 2019-03-14 at 4 35 31 PM

Personally I believe it needs to be altered to display just the parameters in the child nodes.
I.e. why repeat the function name in the child nodes, we're testing different parameters and as a user that's what I would like to see.

Here's the improved version:
Screen Shot 2019-03-14 at 4 39 53 PM

/cc @luabud

More examples of before and after with a larger test base (pytest repo):
Screen Shot 2019-03-14 at 4 44 49 PM
Screen Shot 2019-03-14 at 4 43 07 PM
Screen Shot 2019-03-14 at 4 42 58 PM

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