Update the tests to JUnit 5#238
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #238 +/- ##
============================================
+ Coverage 91.90% 92.09% +0.19%
- Complexity 575 592 +17
============================================
Files 22 22
Lines 1247 1265 +18
Branches 210 211 +1
============================================
+ Hits 1146 1165 +19
+ Misses 63 60 -3
- Partials 38 40 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hello @DamnedElric Thank you for your PR. |
|
I like the idea and I know it is a big task. I did similar work for the RAT project recently. |
Ah my bad, I ran the test and install targets, but I didn't notice that there was a default target which included checkstyle. Will patch that tonight, and include #237. I might create a future MR which refactors some of the tests to use a more idiomatic JUnit 5 style where it improves readability. |
This removes references to JUnit 4 test constructions and switches all tests to JUnit 5. Unfortunately, JUnit 5's assertions have swapped the optional "message" argument from first to last, this makes the diff bigger than it would have otherwise been.
|
@garydgregory Made some changes to fix the checkstyle errors, and included all other recent changes to the master branch. Should be green now :) Edit: technically speaking, the junit-vintage-engine dependency can now be replaced by junit-jupiter-engine, this would prevent any new old-style tests from being introduced. Not sure if we want to go that way? |
@DamnedElric |
@garydgregory Done :-) |
|
TY @DamnedElric ! |
This removes references to JUnit 4 test constructions and switches all tests to JUnit 5.
Unfortunately, JUnit 5's assertions have swapped the optional "message" argument from first to last, this makes the diff bigger than it would have otherwise been.