Skip to content

Display the JUnit 5 display name at the TEST RESULT. #1595

Closed

Description

Regarding to the #1466

The reason why current implementation put the display name as the description part is that: the display name can only be resolved at the runtime. So, we have to show the method declaration name at first before the test case runs.

It would be nice, if the TEST RESULT (which I understand that it is generated after execution) is able to display the JUnit 5 display name instead.

001

002

Especially it may be enhanced to display as the fancy and colorful thing in the future. Credit: baeldung

└─ Display name generator unit test ✓
   ├─ A number is buzz... ✓
   │  ├─ A number is buzz if it is one of the following numbers. ✓
   │  │  ├─ Number 5 is buzz. ✓
   │  │  ├─ Number 10 is buzz. ✓
   │  │  └─ Number 20 is buzz. ✓
   │  └─ A number is buzz if it is divisible by five. ✓
   └─ A number is fizz... ✓
      ├─ A number is fizz if it is one of the following numbers. ✓
      │  ├─ Number 3 is fizz. ✓
      │  ├─ Number 12 is fizz. ✓
      │  └─ Number 18 is fizz. ✓
      └─ A number is fizz if it is divisible by three. ✓

Activity

  1. jdneo commented on Aug 11, 2023

    @jdneo
    Member

    Hi Charlee Chitsuk (@charleech), thanks for the feedback. I linked your request to #1588

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

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