1 comment

[ 3.3 ms ] story [ 11.9 ms ] thread
Check out WireMock Chaos! It’s our latest add-on to WireMock Cloud which merges the power of API Mocking with Chaos Engineering to simulate API request failures. Hence, you can have better integration test coverage and ensure slow weekends for your platform engineers and maybe yourself when on-call :-)

Want to inject some chaos into your testing? WireMock Cloud has a ready to go “Hello world!” example in the quickstart. If you have an OpenAPI/Swagger definition ready, you can easily import it and bootstrap API in a few clicks. There is a free tier available for small projects and those who want to try it out.

For chaos testing, once APIs are defined, just open the Mock API, go to the “Chaos” configuration tab and toggle “Enable chaos”. There you can configure error rates, HTTP return codes and their distribution, as well as random long delays and timeouts. Then it will get applied to all the responses within the scope of the API.

Let us know what you think here or on the WireMock Slack: https://slack.wiremock.org/! And bring order to you API test chaos