Skip to content

@ParameterizedTest display custom names for arguments #2452

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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