Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add name attribute for @RetryingTest #601

Closed
crw614 opened this issue Mar 3, 2022 · 1 comment · Fixed by #603
Closed

Add name attribute for @RetryingTest #601

crw614 opened this issue Mar 3, 2022 · 1 comment · Fixed by #603

Comments

@crw614
Copy link

crw614 commented Mar 3, 2022

Using @RetryingTest overwrites test names and causes a mess in test reports. @DisplayName does not work. Could you add an attribute to @RetryingTest that allows you to specify the format of the test name?
For example @RetryingTest(value = 3, name = "Custom name {currentTry}")

Example from junit5

current report look like it:
image

@Michael1993
Copy link
Member

Hi @crw614 👋

I wanted to let you know that @DisplayName works with the test container, but you have a valid point about a missing name attribute for test invocation. I'll try to get something done about this soon.

@Michael1993 Michael1993 changed the title Add name attribute for @RetryingTest Add name attribute for @RetryingTest Mar 3, 2022
nipafx pushed a commit that referenced this issue Mar 10, 2022
Due to Pioneer having multiple TestTemplate-based extensions,
the need for a unified `TestNameFormatter` arose. This moves
`CartesianTestNameFormatter` to the package `...internal`, so it
may be used by other extensions as well.

Closes: #601
PR: #603
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants