Rodrigo Guerrero
09/28/2023, 2:47 PMpaparazzi
tests using coil
. 🧵coil
like this:
val engine = FakeImageLoaderEngine.Builder()
.intercept(url, ColorDrawable(Color.RED))
.default(ColorDrawable(Color.BLUE))
.build()
val imageLoader = ImageLoader.Builder(paparazzi.context)
.components { add(engine) }
.build()
Coil.setImageLoader(imageLoader)
paparazzi
like this:
@get:Rule
val paparazzi = Paparazzi(deviceConfig = DeviceConfig.PIXEL_5)
Benoit Quenaudon
09/28/2023, 4:21 PMRodrigo Guerrero
09/28/2023, 4:22 PMBenoit Quenaudon
09/28/2023, 4:23 PMRodrigo Guerrero
09/28/2023, 4:26 PMBenoit Quenaudon
09/28/2023, 4:35 PMRodrigo Guerrero
09/28/2023, 4:39 PM./gradlew app:recordPaparazziDebug
only one screenshot shows the image, the other don't.roborazzi
, with the same coil
configuration, and the images are generated correctlyBenoit Quenaudon
10/02/2023, 11:59 AM