We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Many of the unit tests for the API use a display name that matches the method name like in this example:
data/api/src/test/java/jakarta/data/repository/PageableTest.java
Lines 44 to 53 in 2603399
Instead, we could use the @DisplayNameGeneration annotation on the class to automatically give tests displays names based on the test method name.
@DisplayNameGeneration
For example:
@DisplayNameGeneration(ReplaceCamelCase.class) class LimitTest { @Test void shouldReturnErrorWhen_maxResults_IsNegative() { ... } @Test void shouldCreateLimitWithRange() { ... } }
This would result in display names of:
- Should return error when maxResults is negative - Should create limit with range
The text was updated successfully, but these errors were encountered:
Good idea, I will work on it.
Sorry, something went wrong.
Closing not appropriate for this project to handle.
DisplayNameGenerator
I just opened a new JUnit issue to handle this case junit-team/junit5#3569
JUnit Pioneer plans to integrate this feature but they are waiting the decision of JUnit
junit-pioneer/junit-pioneer#793
FanJups
Successfully merging a pull request may close this issue.
Many of the unit tests for the API use a display name that matches the method name like in this example:
data/api/src/test/java/jakarta/data/repository/PageableTest.java
Lines 44 to 53 in 2603399
Instead, we could use the
@DisplayNameGeneration
annotation on the class to automatically give tests displays names based on the test method name.For example:
This would result in display names of:
The text was updated successfully, but these errors were encountered: