WireMock

WireMock

WireMock is an open source tool for simulating HTTP-based APIs during development. It enables mocking and stubbing of APIs and servers before they are fully developed to enable faster testing of applications that integrate with them.
WireMock image
mocking stubbing http testing

WireMock: Open Source API Mocking Tool

WireMock is an open source tool for simulating HTTP-based APIs during development, enabling faster testing of applications that integrate with them.

What is WireMock?

WireMock is an open source API mocking and stubbing tool for testing HTTP-based APIs and microservices. It allows developers to simulate the APIs their code needs to interact with before those APIs are fully developed, enabling faster testing and development.

Some key features of WireMock include:

  • The ability to quickly define stubbed HTTP responses that stand in for not-yet-implemented APIs. These can return JSON, XML, headers, status codes, etc.
  • Matching incoming requests against flexible request patterns, similar to assertions in mocking frameworks.
  • Simulating fault conditions like network issues, slow responses, or unexpected payloads.
  • Recording actual requests/responses between your code and external services during integration testing. These recordings create stubs mapping requests to responses to replay later for virtualized integration testing.
  • Extensive support and configuration options for simulating complex APIs.
  • A standalone server that your code under test can connect to as a mock external system.

By using WireMock early in development, teams can test against simulated responses from services that haven’t actually been built yet. This facilitates test-driven development, faster feedback cycles, and improved collaboration across API owners and consumers.

WireMock Features

Features

  1. HTTP request stubbing
  2. Request matching and response templating
  3. Record and playback of stub mappings
  4. Proxying
  5. HTTPS support
  6. Customizable request matching
  7. Customizable response generation
  8. Self-contained executable JAR with embedded web server

Pricing

  • Open Source

Pros

Enables testing against simulated APIs without needing real endpoints

Faster and more flexible than mocking HTTP interactions in unit tests

Avoids flakiness when testing against remote endpoints

Simplifies testing of edge cases and failure modes

Enables working offline

Cons

Additional component to install and run during testing

Can make tests more brittle if stubs drift from actual API behavior

Stubbing complex APIs can require significant upfront effort


The Best WireMock Alternatives

Top Development and Api Testing and other similar apps like WireMock


Mockoon icon

Mockoon

Mockoon is an open source API mocking application used by developers to simulate APIs and external services during development and testing. It provides an intuitive interface to quickly mock any system you depend on in your development workflow.With Mockoon, you can create mock HTTP responses, endpoints, proxy paths and examples...
Mockoon image
RoboHydra icon

RoboHydra

RoboHydra is an emerging open-source robotic process automation (RPA) software designed to help users automate repetitive and time-consuming computer-based tasks. It provides a visual interface to build software robots (bots) that can interact with applications on a user's computer to perform specified actions or small workflows just like a human...
RoboHydra image
Beeceptor icon

Beeceptor

Beeceptor is a handy online tool that allows you to mock APIs and HTTP requests without needing to set up a real backend server. It lets you quickly define custom endpoints and specify responses, which you can then use for testing purposes.Some key features of Beeceptor include:Simple UI to add...
Beeceptor image
Mockable icon

Mockable

Mockable is an online service that makes it easy for developers to mock REST APIs and HTTP responses without needing to set up a real backend. It allows you to quickly define endpoints with different HTTP methods like GET, POST, PUT etc. and configure mocked responses with custom status codes,...
Mockable image
SOAP/REST Mock Service icon

SOAP/REST Mock Service

SOAP/REST mock services are testing tools that mimic the behaviors of real web services by providing simulated responses. They allow developers to build and test applications that would otherwise depend on the availability and correct implementation of actual remote services.Key benefits of using a mock service include:Developing and testing against...
SOAP/REST Mock Service image
Mockintosh icon

Mockintosh

Mockintosh is a free, open-source application that allows developers to prototype, design, and test applications for Apple platforms without needing access to actual Apple devices. It emulates various Apple operating systems and devices to provide a mock development and testing environment.Some key features and benefits of Mockintosh include:Emulation of multiple...
Mockintosh image
MockServer icon

MockServer

MockServer is an open source tool primarily used for mocking HTTP APIs and REST services during testing and development. It enables developers to simulate external systems and endpoints that the application under test depends on by providing fake responses, without requiring access to real networks or services.Key features of MockServer...
MockServer image
Mock/it icon

Mock/it

Mock/it is an open source mocking framework for Node.js and the Web. It provides developers with the ability to easily simulate and mock backend logic to enable unit testing and system testing without relying on external dependencies.Some key features and benefits of Mock/it include:Mocking HTTP requests and responses - Developers...