Migrate JUnit 4 tests to JUnit 5 in org.eclipse.jface.text.tests#3409
Conversation
626b57c to
7a2341d
Compare
|
@fedejeanne @akurtakov @HeikoKlare @HannesWell Migration was done with Claude Code (which IMHO is currently the best AI engine for coding tasks). Changes look fine to me and the number of tests is still the same. Any concerns? Otherwise I start merging such changes if the build is green and the test number is the same (of course after manually checking for "strange" changes). |
|
In general if the changes stand up to manual review, I don't see any reason for not merging them.
There might of course be different on opinions on how much cleanup such a migration should involve. This pretty much depends on the incentive or goal for doing a migration. For me, migrating to JUnit 5 was never (only) motivated by moving to a more modern framework, but I always took this as a chance to improve the test design and in particular test isolation. In particular in the Platform repository, test isolation was pretty bad before I migrated most of the stuff from JUnit 3/4 to JUnit 5 and the biggest win (and also my essential goal) were more stable tests due to improved isolation and not the migration to JUnit 5 itself. |
|
Thanks @HeikoKlare for the detailed feedback. I agree with your goals and think AI can help with these too. In addition I see the following goals for me:
See also #3414 for some background analysis Claude did before starting to work on the task. |
|
/gemini review |
|
Change LGTM, planning to merge early next week |
vogella
left a comment
There was a problem hiding this comment.
The migration to JUnit 5 in the touched files looks correct. The assertion arguments were correctly swapped, and the lifecycle annotations were updated properly.
Note: I verified that there are still other tests in this package (e.g., TextViewerTest.java) using JUnit 4, so this is a partial migration.
No description provided.