Skip to content

Move tests to JUnit 5#643

Merged
lonvia merged 2 commits intokomoot:masterfrom
lonvia:junit-5
Feb 25, 2022
Merged

Move tests to JUnit 5#643
lonvia merged 2 commits intokomoot:masterfrom
lonvia:junit-5

Conversation

@lonvia
Copy link
Copy Markdown
Collaborator

@lonvia lonvia commented Feb 25, 2022

JUnit 5 has a few gimmicks like parametrized tests that I'm looking forward to use. This PR just contains the necessary syntax changes to run our tests under JUnit5. With our rather basic use of the test framework, there are no bigger changes necessary on that side.

I did run into the problem again with ES' JarHell wrongly detecting the module-info as a duplicate. To work around that the tests now come with a patched version of the JarHell.java file that has a backport of the changes in elastic/elasticsearch#33011 to ES 5.6. It ignores module-info and JarHell.java files (because, being a good duplicate detector, it detects itself correctly as a duplicate). It's a good-enough workaround for the tests but not really something I would want to use on the binary.

This works around the issue that module-info files are wrongly
detected as duplicates. Required for using Junit5.
@lonvia lonvia merged commit 4e4fcf7 into komoot:master Feb 25, 2022
@lonvia lonvia deleted the junit-5 branch February 25, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant