oppia-android icon indicating copy to clipboard operation
oppia-android copied to clipboard

Allow tests to orchestrate Glide to test image loading in testing environments

Open aggarwalpulkit596 opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, there is no way to test of loading an image using Glide with the help of caching the image locally. Tests of images shouldn't depend on the internet and should use cache but for ImageInteraction we can't use Roboelectric neither we can use the caching setup with Gradle.

Describe alternatives you've considered In #1492 we've used a timeout of 5 seconds but that can be flaky depending upon the type of internet connectivity also that is an antipattern for these types of tests (see https://developer.android.com/training/testing/espresso/idling-resource#identify-when-needed)

aggarwalpulkit596 avatar Jul 25 '20 12:07 aggarwalpulkit596

Removing @aggarwalpulkit596 due to inactivity.

seanlip avatar Oct 12 '21 08:10 seanlip