- Notifications
You must be signed in to change notification settings - Fork 58
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
feat: Add JUnit5 extension for OpenFeature #888
Conversation
d1ba6a1
to 7e46d11
Compare 2e44bdf
to 5c3cead
Compare Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
5c3cead
to b177459
Compare Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
ad5d31e
to 61a7bc0
Compare Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
...openfeature/src/test/java/dev/openfeature/contrib/tools/junitopenfeature/StringFlagTest.java Show resolved Hide resolved
...it-openfeature/src/main/java/dev/openfeature/contrib/tools/junitopenfeature/OpenFeature.java Show resolved Hide resolved
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
This is very cool. |
...t-openfeature/src/main/java/dev/openfeature/contrib/tools/junitopenfeature/TestProvider.java Outdated Show resolved Hide resolved
...t-openfeature/src/main/java/dev/openfeature/contrib/tools/junitopenfeature/TestProvider.java Outdated Show resolved Hide resolved
...t-openfeature/src/main/java/dev/openfeature/contrib/tools/junitopenfeature/TestProvider.java Outdated Show resolved Hide resolved
...t-openfeature/src/main/java/dev/openfeature/contrib/tools/junitopenfeature/TestProvider.java Show resolved Hide resolved
There was a problem hiding this 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 🙌
…fixes Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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.
8b586a5
to a58b07d
Compare …fixes Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
a58b07d
to 74a9ff8
Compare Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
i added those entries in the files, pls recheck |
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
There was a problem hiding this 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?
Amazing work, really nice to have. |
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. |
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