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

Mock/fake version of UnleashClient #241

Open
acsbendi opened this issue Jan 22, 2025 · 1 comment
Open

Mock/fake version of UnleashClient #241

acsbendi opened this issue Jan 22, 2025 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@acsbendi
Copy link

Describe the feature request

Similarly to the Java library's FakeUnleash, it would be useful to have an official way to easily mock the UnleashClient of this library.

Background

We would like to set enabled feature toggles from integration tests without having to implement a FakeClient in our own code.

Solution suggestions

Similarly to the Java version: define common interface, FakeUnleash implements it too, and it uses a completely local state so that enabled feature toggles can be set from the code.

@acsbendi acsbendi added the enhancement New feature or request label Jan 22, 2025
@gastonfournier gastonfournier added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 23, 2025
@gastonfournier gastonfournier moved this from New to For later in Issues and PRs Jan 23, 2025
@gastonfournier
Copy link
Contributor

Hi @acsbendi, thanks for the suggestion. It would be nice to have, but unfortunately not in our priorities at this moment. We'd be happy to review and provide support in case you want to make a contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: For later
Development

No branches or pull requests

2 participants