-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Deprecate @UseTechnicalNames
#2720
Comments
Team decision: Deprecate |
@UseTechnicalNames
The JUnitPlatform runner was deprecated in 5.8.0. This commit deprecates the @UseTechnicalNames annotation, since @UseTechnicalNames is only used by the JUnitPlatform runner. Closes #2720
The JUnitPlatform runner was deprecated in 5.8.0. This commit deprecates the @UseTechnicalNames annotation, since @UseTechnicalNames is only used by the JUnitPlatform runner. Closes junit-team#2720
Hello @sbrannen and @mpkorstanje! The team's Developers copy pasted DisplayName, so multiple tests have the same Name and ClassName. As for now, the testcases have the same names, that's my metric is not clear. Is there a way to say Junit5 to use Method Name instead DisplayName? I suppose some listener can be overridden and changed or added some custom field into the test. |
You may want to create a new issue to discuss your proposal. To deal with the large amount of issues and feature requests efficiently and notifications the JUnit team has a workflow. When you create a new issue the template will promt you to explain your problem. Bear in mind that in your proposal you'll have to explain why you can't fix your duplicate display names. |
With the deprecation of the JUnitPlatform runner in favor of
@Suite
support (8ac3dfb)UseTechnicalNames
should also be deprecated.In brief using
@UseTechnicalNames
would instruct the JUnitPlatform runner to use class and/or method names in JUnit4 test descriptions using the information contained in the Junit5 TestIndentifiers.Reasons for deprecation:
junit-platform-suite-api
would benefit from UseTechnicalNames.TestIndentifiers
as part of the JUnit Platform. Users of the JUnit Platform can reconstruct the technical names in the same way the JUnitPlatform runner did.The text was updated successfully, but these errors were encountered: