-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Improvement-12333][Test] Migrate all UT cases from jUnit 4 to jUnit 5 in microbench and e2e module #12348
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #12348 +/- ##
============================================
+ Coverage 38.93% 39.22% +0.28%
- Complexity 4177 4211 +34
============================================
Files 1040 1040
Lines 38797 38794 -3
Branches 4460 4460
============================================
+ Hits 15105 15216 +111
+ Misses 21923 21806 -117
- Partials 1769 1772 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hi, @kezhenxu94 , could you please help me with this e2e problem? This PR wants to remove the junit4 api in the It seems that If we want to migrate all UT cases from jUnit4 to Junit5 here, do we need to refactor the tests in cc @EricGao888 |
From the doc of testcontainers it seems impossible to remove junit4 from test classpath. But since we have spotless check to forbid usage of junit4 classes we can avoid direct use of junit4 in our codebase. Right? Is your question about the failed tests, then? |
256021f
to
508853c
Compare
@kezhenxu94 Thanks a lot for the comment, I agree with you. So we need to avoid the junit 4 api in our codebase. As for the CI e2e failure, this is because I use The reason I made this change was to avoid the import of Now I have tried to use Maybe we could wait for the CI results before deciding what to do next. |
Hi @kezhenxu94 It seems that the CI cannot pass because of the |
76d5e7e
to
5f4179f
Compare
I have a clue, WIP |
4986bf1
to
4836073
Compare
@rickchengx FYI, we also have a junit import in microbench module, see: Line 23 in 3bef85f
|
Hi @EricGao888 Thanks for the comment. I've noticed this. |
…5 in microbench and e2e module
4836073
to
3dbbb65
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi, @EricGao888 , I have refactored cc @kezhenxu94 |
Seems good to me. But I'm not familiar with this module. Could u plz take a look when available? @kezhenxu94 @SbloodyS ? Thanks~ |
@zhongjiajie Thanks for pointing this out. I will submit a follow-up PR to this issue to fix this, as well as remove junit4 check exclusions for these two modules. Lines 642 to 647 in a11892a
|
@zhongjiajie I've done it in #12450, please take a look when available, thanks : ) |
…5 in microbench and e2e module (apache#12348)
Purpose of the pull request
Brief change log
Migrate all UT cases from jUnit 4 to jUnit 5 in microbench and e2e module
Verify this pull request