-
Notifications
You must be signed in to change notification settings - Fork 35
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
request: Allow Mocking of Image.network #18
Comments
Thanks for bringing this up! When you say "mock", do you mean you'd like to intercept the requests and add your own placeholder images? Or do you mean you'd like to match the implementation of |
Initially I thought Kirschsteines a system in place that makes the tests not fail would be nice, but thinking about what you said I think being able to provide custom placeholder would be even better. |
Is this in scope for this library or could it be facilitated by using a network image mocking package in conjunction with alchemist? |
I think it would be better if people can use their preferred image mocking package with alchemist |
Is there an existing feature request for this?
Command
I would like to mock Image.network to support that in golden_tests
Description
I want to test widgets that use
Image.network
in golden tests. Right now if there is a widget trying to useImage.network
the following exception is thrown:Reasoning
Testing widgets with Network Images should be vital
Additional context and comments
I tried to wrap the
goldenTest
withawait mockNetworkImages(() async {
from https://github.com/felangel/mocktail/tree/main/packages/mocktail_image_network but that did not have the desired effectThe text was updated successfully, but these errors were encountered: