5

Is it possible to mock coil network level when unit testing? With MockWebServer? Or test it somehow else? I can't find information on the Internet about it.

Vladimir Fisher
  • 3,090
  • 2
  • 17
  • 23

1 Answers1

2

I've found the answer. We can use OkHttp’s mock web server. Also check out: https://coil-kt.github.io/coil/image_loaders/#testing

Vladimir Fisher
  • 3,090
  • 2
  • 17
  • 23