-
Notifications
You must be signed in to change notification settings - Fork 904
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
Migrate tests from junit4 to junit5 #4322
Comments
@shoothzj Hi shoothzj, I'm very interested in this job, can I have it processed? |
@sherlock-lin Sure, go ahead, I think we'd better change less than 15 files in one Pull Reuqest. |
Okay, I'll do it in small batches. |
OpenRewrite contains support for Junit4 to Junit5 migration. It's probably worth using it to assist in the migration. I'd also recommend using AssertJ for more complex assertions since the error messages that AssertJ creates are much better than ordinary asserts. there's also a recipe for migrating to use AssertJ: |
Thanks, I needed this so much. : ) |
JUnit 5 offers significant improvements over JUnit 4, including more powerful and flexible testing capabilities like annotation-based coding(so we don't need to write assume), parallel test execution, and other features. We can write new test classes using junit5, and existing-test classes can be slowly migrated.
This issue to track tests migrate to junit5, we can migrate a package、a small module gradually.
See also:
https://lists.apache.org/thread/hlyc722gy45s3y61q7n79hdcr6cgrx7v
The text was updated successfully, but these errors were encountered: