Running on Android
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
Presentation by Michael Bailey#
Michael Bailey was the first person to publicly demonstrate the possibility of running WireMock on Android. Here's his presentation at Google's GTAC conference on the testing setup used by his team at Amex: https://www.youtube.com/watch?v=-xQCNf_5NNM
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