OkReplay
Record and replay OkHttp network interaction in your tests
OkReplay is a tool for recording and replaying HTTP interactions (specifically via OkHttp) in Android tests to improve determinism, test speed, and reliability. During the first run of a test annotated with @OkReplay, the library records outgoing HTTP requests and their responses into tape files. On subsequent runs, it intercepts those requests and serves the recorded responses instead of making real network calls. This allows tests to be executed offline, reduces flakiness due to network variability, and isolates the test environment from external dependencies. ...