Skip to content

@ParameterizedTest display custom names for arguments #2452

Closed
@SarathBabu

Description

@SarathBabu

When using @ParamerizedTest annotation, will it be possible to display a string other than what is supplied by toString()?
When we are using some big objects the toString value is very large and displays lots of informations which are not relevant

It would be helpful if we can give provision to

  • display some parameter on the argument like {0.shortName} or {0.route.origin} etc
  • Provide another class name which will generate the string to display for each argument

Deliverables

Provision to customise the name of the arguments in @ParamerizedTest

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions