-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
YARN-11245. Upgrade JUnit from 4 to 5 in hadoop-yarn-csi #4778
Conversation
@ashutoshcipher @aajisaka From my personal point of view, this change is valuable, but can we provide some suggestions to developers, such as which methods we should use in junit5. Forcibly changing the habits of developers is not very friendly. @ashutoshcipher Thanks a lot for your contribution, but it's better to let the developers know the best practices in junit5. |
@slfan1989 - We are not forcing the developers to change any habits. This upgrade is required for Please feel to check online for best practices in junit5. I am sure you will get many links. Also |
I think the responsible approach is that the community should give a guide, such as which methods of junit4 are replaced with which methods of junit5, rather than encouraging developers to search the Internet. |
@ashutoshcipher This is very necessary, I can recognize the value of this, and thank you very much for your contribution, but it is better to give a guide first. |
@slfan1989 - To know which methods of junit4 are replaced with which methods of junit5. You can see previous PRs - they will be very much informative to know such things :) |
I still feel that this is not very friendly, let's look at other partners' suggestions. |
I feel community is already busy with so many things. I am atleast personally not expecting from someone to sit and write down best practices for upgrading Junit 4 to Junit 5 for me. But if someone want/can do it, I am very much happy :) We are all learners and its upto us to decide how we want to learn :) FYI - Currently, This is being followed - https://github.com/openrewrite/rewrite-docs/tree/b187223ddcbf369a77a86efd6950e924fd91f00d/reference/recipes/java/testing/junit5 |
🎊 +1 overall
This message was automatically generated. |
@slfan1989 @ashutoshcipher Thank you for the discussion
+1 to write down best practices. In this case, now I like using AssertJ APIs as they are more fluent and their error messages are user-friendly, but I think we can continue to use JUnit 5 APIs because it's the similar experience as existing JUnit 4 APIs and it's more easier to use for the upgrade rather than replacing all the APIs with AssertJ. |
Co-authored-by: Ashutosh Gupta <ashugpt@amazon.com> Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
Description of PR
Upgrade JUnit from 4 to 5 in hadoop-yarn-csi
JIRA - YARN-11245
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?