On Wed, 16 Feb 2022 at 14:30, Gilles Sadowski <gillese...@gmail.com> wrote:
> > I've finally found that CODEC-285 is an issue that maybe I can help
> > (Upgrade to JUnit v5.6.0). But there are already 4 PRs there. I'm not sure
> > from where I should start: create a branch from the master or from some
> > branch in those PRs? Starting from the master it's possible to have
> > conflicts when merging all PRs. My plan is really to convert *all* tests in
> > CODEC to Junit 5. Can I do it in a single massive PR or should I create a
> > PR for each package?
>
> A good start for another post (changing the "Subject:" line).

This has been done before in a single massive PR, e.g. for CSV [1].

It requires a change to use the JUnit5 pom, then a find and replace of
Test and Assert -> Assertions. The later requires swapping the order
of all messages to Assert.

Things to watch out for are:

- Any assertions that compare double values with a delta of zero. The
delta can be removed unless comparing +0.0 and -0.0.
- Any string formatted messages can be replaced with lambdas
- The try-catch pattern can be replaced with Assertions.assertThrows

You can go ahead and start a PR on this and see how it goes. It does
not have to fix everything but it would be welcomed in any form as the
newer Junit framework indicates a continued commitment to keep the
project active.

Alex

[1] https://issues.apache.org/jira/browse/CSV-252

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to