-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Upgrade to junit 5 #6916
Comments
Migration plan, in my vision
|
I checked and these changes are actually huge. |
Please suggest plan for sequential upgrade, it is preferable, as it will simplify review. We can upgrade to junit5 binaries, but still use old junit4 classes ? and when think about how to migrate to new junit classes. |
IntelliJ IDEA has an inspection to perform migration to JUnit5 automagically: |
Thanks, this one will definitely help here. I will check what things it cannot solve. |
Done, see second post in this issue.
If it will be helpful for someone, this item can be found in "inspections" section and was disabled by default on my machine. |
We have config for inspections, if it is useful in long run , we can activate it now |
fist step is merged. |
Minor related issue: #7305 |
Another issue for |
Status update: Failed build example: https://travis-ci.org/github/checkstyle/checkstyle/jobs/722516044 It looks like this is a bug in surefire or even in JDK. It is possible that somewhere the number of physical cores is taken instead of the number of logical cores. It's hard to say for sure yet. I will research this issue further. |
@pbludov Is all that is left on the upgrade to do parallel execution? (Noted at #6916 (comment)) |
I'll re-check how stable the OSX parallel tests now. Perhaps the reason is that we need to update the JDK for the OSX CI. This is the only build that has problems with parallel execution. Or may be just disable parallel execution of tests for this setup. If It fail, I'll make this a separate issue, and close this one. |
I must admit that OSX build is stable now. I restarted the build 10 times. None of them had any problems. |
Finally, make it fail
I'll start a new issue for this |
This bug does not affect local OSX builds. |
The issue is done. Powermock tests will be updated in #7368 |
As discussed at #6914 (comment),
We should try to upgrade to junit 5.
https://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4
The text was updated successfully, but these errors were encountered: