Skip to content
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

Move tests to JUnit 5 #643

Merged
merged 2 commits into from
Feb 25, 2022
Merged

Move tests to JUnit 5 #643

merged 2 commits into from
Feb 25, 2022

Conversation

lonvia
Copy link
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