Running on Android
WARNING: This document is for an old WireMock 2.x baseline. See the documentation for the current WireMock 3.x baseline here
Disclaimer: This solution page includes resources maintained by their authors outside the WireMock organization on GitHub. The info is provided as is without guarantees unless explicitly specified. Referenced projects and guidelines might be incompatible with the recent WireMock 3.x releases or the recent versions of the target technology or framework.
Please use with caution, and submit GitHub issues or pull requests to this page and referenced repositories if something is missing, broken or needs update.
Guide by Sam Edwards #
As documented by Sam Edwards in 2016, with some effort it is now possible to run WireMock 2.x on Android. Please see this blog post for instructions. This guide is likely no longer applicable to the recent versions.
References:
- Android Http Mocking Examples
- Shopping App Demo application with API mocking in test automation
- Now it is based on Ktor, but there is WireMock Edition in the commit history
Useful pages #
- WireMock and Kotlin - Android ecosystem embraces Kotlin as a development language, and there are some additional tooling available
- WireMock on Java and JVM - Some of JVM generic solutions are applicable to Android development too