News for hackers. Stuff that matters.

tomakehurst

Re:Ask HN: Best Way to Mock APIs in 2020? on Monday June 15, 2020 @02:34PM (#23531181)
MockLab [1] is a SaaS mocking tool built on top of WireMock.

Worth a look if you use Swagger/OpenAPI as it'll accept this as an import format.

[1]: http://mocklab.io

Re:WireMock on Friday September 07, 2018 @04:14PM (#17937300)
Strange. I could see them OK. Thanks for vouching (assuming you can see this one)!
Re:WireMock on Friday September 07, 2018 @04:12PM (#17937298)
WireMock was originally released in 2011
Re:WireMock on Friday September 07, 2018 @02:53PM (#17936742)
If by async callbacks you mean something akin to webhooks, then there's an extension for that: https://github.com/wiremock/wiremock-webhooks-extension
Re:WireMock on Friday September 07, 2018 @02:52PM (#17936729)
I can confirm it was neither intentional, nor copied!
Re:WireMock on Friday September 07, 2018 @11:29AM (#17935028)
More generally, it's useful for mobile development in the following scenarios:

* The back-end API you depend on isn't ready yet

* The back-end test server is slow, flakey etc.

* You want to test scenarios you can't easily make happen on demand like slow responses, 503 errors, dropped connections etc.

Worth mentioning that even if you're not driving WireMock from Java (or another language binding), you can run it on your laptop or a server from a bunch of JSON files. This makes it usable with e.g. iOS apps.

Alternatively you can use https://www.mocklab.io, which is 100% compatible, but hosted, has a UI etc.

Re:WireMock on Friday September 07, 2018 @11:19AM (#17934926)
Hi, WireMock creator here.

Lots of folks use WireMock for Android testing. Definitely worth checking out Sam Edwards' blog and conference presentations on this, e.g. https://handstandsam.com/2016/01/30/running-wiremock-on-andr...