square / okhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.

Home Page:https://square.github.io/okhttp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support MockWebServer as a remote service for KMP testing

yschimke opened this issue · comments

Since we want to support Call.Factory implementations in KMP, we may not be able to reuse our substantial tests for OkHttp.

But if we introduce a minimal KMP interface for MockWebServer in 5.0, then we can support it by running a remote Java instance.

We can start with a basic set up 10-15 tests that show it working for typical cases, and then work out if it is worth expanding on this over time to support more.

  • Define KMP interface (Server?)
  • Implement a remote api to configure calls
  • Implement first set of HTTP tests
  • Work out how to implement HTTPS with local certs?