Flutter_cached_network_image: How to widget test Cached network manager

Created on 15 Dec 2019  路  6Comments  路  Source: Baseflow/flutter_cached_network_image

Is there any tests code sample on Cached network manager? how we should write widget tests for it

documentation

All 6 comments

I always have the same problem

Hi, does anyone successfully test integration test with CachedNetworkImage?

@renefloor any pointers on this one? Or do we just mock the dependencies.

That's indeed something that should be improved I think. With smaller unit tests you can mock the CacheManager in the image widget.

Any updates on this? What's the way to go here?

Was this page helpful?
0 / 5 - 0 ratings