-
Notifications
You must be signed in to change notification settings - Fork 607
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
Re-enable JUnit 4 and JUnit 3 unit tests #3273
Re-enable JUnit 4 and JUnit 3 unit tests #3273
Conversation
When JUnit 5 support was added to the project, the "JUnit Vintage Engine" artifact wasn't added. Without this artifact, the JUnit 5 engine ignores any tests written for JUnit 4 or JUnit 3, i.e. the majority of the tests.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3273 +/- ##
=============================================
+ Coverage 1.78% 55.45% +53.67%
- Complexity 100 5506 +5406
=============================================
Files 721 721
Lines 29534 29534
Branches 3840 3840
=============================================
+ Hits 526 16378 +15852
+ Misses 28970 11630 -17340
- Partials 38 1526 +1488 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, just some minor remarks regarding dependency scopes/management.
- Pull JUnit BOM instead of individual artifacts - Make JUnit engines dependencies of the surefire plugin
Pull only the necessary artifacts to the test classpath.
I have no idea why the Mac test failed or why the codeclimate check is stuck. Is there a way to redo the checks? Should I push a dummy commit? |
The first seems to be a race condition happening from time to time. Only happens on Mac CI, not related to your commit. No clue about the second one. Nothing to worry about though, this doesn't prevent the merge. I will wait till the end of the week before merging to give @davidjgonzalez to have a look as well. |
Looks like this was broken in #3233. With the addition of JUnit 5, the existing unit tests got ignored (note the sharp drop in overall coverage in the Codecov report). This PR should restore those old tests to full functionality.
Fixes #3270