Skip to content

feat: Add JUnit5 extension for OpenFeature #888

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

Merged
merged 10 commits into from
Jul 26, 2024

Conversation

aepfli
Copy link
Member

@aepfli aepfli commented Jul 21, 2024

This PR

Adding a junit5 extension allows the user to reduce boilerplate code in his unit tests.

This extension will prefill the InMemoryProvider with a flag configuration.

todo

  • Boolean Support
  • String Support
  • Number Support
  • Object Support

@aepfli aepfli force-pushed the feat/junit-extension branch from d1ba6a1 to 7e46d11 Compare July 21, 2024 20:17
@aepfli aepfli force-pushed the feat/junit-extension branch 2 times, most recently from 2e44bdf to 5c3cead Compare July 21, 2024 20:29
@aepfli aepfli force-pushed the feat/junit-extension branch from 5c3cead to b177459 Compare July 22, 2024 09:19
Signed-off-by: Simon Schrottner <[email protected]>
@aepfli aepfli force-pushed the feat/junit-extension branch from ad5d31e to 61a7bc0 Compare July 22, 2024 10:31
Signed-off-by: Simon Schrottner <[email protected]>
@aepfli aepfli marked this pull request as ready for review July 23, 2024 12:03
@aepfli aepfli requested a review from a team as a code owner July 23, 2024 12:03
@toddbaert
Copy link
Member

This is very cool.

Copy link
Collaborator

@Kavindu-Dodan Kavindu-Dodan left a comment

Choose a reason for hiding this comment

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

Left some comments but overal looks great 🙌

Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

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

Please make sure to configure Release Please. This can be done by adding a new package here and a reference to the packager here.

@toddbaert toddbaert self-requested a review July 25, 2024 16:06
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Code-wise, this looks good to me (though consider the feedback from others).

The blockers for me are that you need to update the release-manifest and config, and add yourself as an owner to this component in the component owners.

@aepfli aepfli force-pushed the feat/junit-extension branch from 8b586a5 to a58b07d Compare July 25, 2024 18:59
@aepfli aepfli force-pushed the feat/junit-extension branch from a58b07d to 74a9ff8 Compare July 25, 2024 19:00
Signed-off-by: Simon Schrottner <[email protected]>
@aepfli
Copy link
Member Author

aepfli commented Jul 25, 2024

Code-wise, this looks good to me (though consider the feedback from others).

The blockers for me are that you need to update the release-manifest and config, and add yourself as an owner to this component in the component owners.

i added those entries in the files, pls recheck

Co-authored-by: Michael Beemer <[email protected]>
Signed-off-by: Simon Schrottner <[email protected]>
Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

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

Could you please add installation instructions on the readme once the artifact is on Maven Central?

@toddbaert toddbaert self-requested a review July 26, 2024 17:44
@toddbaert
Copy link
Member

Amazing work, really nice to have.

@beeme1mr beeme1mr enabled auto-merge (squash) July 26, 2024 17:51
@beeme1mr
Copy link
Member

Hey @aepfli, please rebase when have a moment. I've enabled auto-merging, but it won't happen until this branch is up to date.

@beeme1mr beeme1mr merged commit 9fff9db into open-feature:main Jul 26, 2024
1 check passed
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.

6 participants