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

[buck] enable junit5 #26

Merged
merged 1 commit into from
Nov 13, 2023
Merged

[buck] enable junit5 #26

merged 1 commit into from
Nov 13, 2023

Conversation

scottlee14
Copy link

@scottlee14 scottlee14 commented Nov 13, 2023

Enables junit5 on addebuck. This is accomplished by

  • pulling in a bunch of junit5 dependencies. Buck version controls all third-party dependencies, so they needed to be added manually
  • pulling out and renaming the JUnit 4 test handler
  • adding a new test handler for JUnit 5

I also added some changes to .idea/ to facilitate developing with buck at addepar. At this point, addebuck is as tightly coupled with Addepar as it will ever be.

Screenshot 2023-11-12 at 9 38 47 PM

@navkast @calcwu

@scottlee14 scottlee14 force-pushed the scott/junit5-support branch 3 times, most recently from f91ddee to 71f0347 Compare November 13, 2023 02:52
@navkast
Copy link
Member

navkast commented Nov 13, 2023

surprisingly easy. can you swap it for 5.10.1 version of junit? should be a drop-in replacement.

@scottlee14
Copy link
Author

Is there a major benefit to 5.10.1? It's pretty tedious to download JARs from maven for like 5 different dependencies.

But I'll do it if there's a good reason.

@navkast
Copy link
Member

navkast commented Nov 13, 2023

bug fix around beforeall and beforeach between test inheritance across packages. it hurts us especially since we have cross-package test inheritance.

@scottlee14
Copy link
Author

bug fix around beforeall and beforeach between test inheritance across packages. it hurts us especially since we have cross-package test inheritance.

That's a good reason. Will do.

@scottlee14 scottlee14 merged commit 0add0af into v2022.05.05.01 Nov 13, 2023
@scottlee14 scottlee14 deleted the scott/junit5-support branch November 13, 2023 16:56
Copy link

@calcwu calcwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome change - @scottlee-addepar 🚀

jUnitCore.run(request);
} else if (mightBeJunit5TestClass(testClass)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice. 👍

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.

3 participants