wiremock
Joined 3 years ago
Joined 3 years ago
* New matchers: JSON schema, form parameters, multi-value parameters, etc. * Response templating: path parameters, global state functions and data randomization * New extension API and better observability capabilities * New extension capabilities including support for gRPC and GraphQL and the new global state management * Dropping Java 8 support
Would anyone be also interested in a public Hacker News API template on https://apis.guru/ and https://library.wiremock.org/ ?
WTH is OpenAPI we use? OpenAPI is an open standard, originally inherited from Swagger. It can be used to serve the docs on the website, IDE integrations, to generate client code and to create various API mocks for the integration tests.
Would WireMock on Testcontainers be interesting to you? What features would you like to see there?
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
Our TL;DR: the standard looks interesting, the developer tools need a lot of love. The whole world is using JSON/YAML these days, but developer experience for JSON Schema is lightyears behind "legacy" XSD
If you use Java, .NET or other tech stacks, most likely you've already tried WireMock for different API Mocking and integration testing use-cases. Maybe you tried one of dozens different implementations and adapters, of various quality IMHO. I'm currently assembling the roadmap for WireMock 3.0, documentation and the ecosystem. Would love to get your feedback about what works and what you'd like to see in the project.
Let me know what your experiences are! Our Slack is also open 24/7 for detailed feedback and live discussions