qmetrics.net

WireMock

Open-source HTTP API mocking and stubbing engine

WireMock screenshot

WireMock simulates HTTP APIs for stable tests and development. It runs embedded in code, as a standalone JVM process, or in a container.

Overview

WireMock is an open-source tool for mocking HTTP services. Teams use it to build predictable test and development environments when real APIs are missing, unstable, or slow, and to prototype behavior before backends exist.

Stubs can be defined in Java, JSON files, or over a REST admin API, and traffic can be recorded by proxying requests to real systems. Matching covers URLs, headers, bodies, and other request parts; responses can be templated with Handlebars for dynamic output. Additional capabilities include request verification, injected faults and delays, conditional per-request proxying, browser proxying for inspection, stateful scenarios, and extension hooks.

WireMock spans multiple language bindings and can run inside unit tests, as a long-lived standalone server, or packaged for containers. Documentation and a large community surround the core Java engine, with a separate commercial cloud product offering hosted collaboration and advanced features.

Self-hosting is documented through standalone JAR execution and official Docker images that expose an HTTP port for stub traffic and administration.

Key features

  • HTTP stubbing with rich request matchers
  • JSON, Java, and REST configuration
  • Record and playback via HTTP proxy
  • Handlebars dynamic response templates
  • Fault injection and response delays
  • Stateful behavior and verification
  • Standalone JAR or Docker deployment
  • Extension points for custom logic

Use cases

  • Isolating tests from third-party APIs
  • Developing against APIs not yet built
  • Replaying captured HTTP interactions in CI
  • Simulating errors and slow responses

Tags

Similar software

Keploy

Record-and-replay API and integration testing from traffic

Keploy captures API calls, database queries, and streaming events, then replays them as tests and dependency mocks without changing application code.

★ 20k⟳ todayApache-2.0

GoReplay

Capture and replay live HTTP traffic

GoReplay records HTTP from network interfaces and replays it to test servers for shadowing, load testing, and debugging. It runs as a command-line daemon without in-path proxy changes.

★ 19.3k⟳ 1 year agoGPL-3.0 · open core
API Development & TestingNo commits in 18+ monthsDesktop/CLI app

MSW

JavaScript API mocking through network-level request interception

Mock Service Worker lets you define HTTP mocks once and reuse them in browsers and Node.js. Applications keep calling real APIs while responses are substituted at the network layer.

★ 18.4k⟳ 2 days agoMIT

supertest

Node.js HTTP server testing via superagent

Supertest offers a fluent API for asserting HTTP behavior against Node.js servers during automated tests. It builds on superagent so you can express status, headers, and body expectations in code.

★ 14.4k⟳ 21 days agoMIT

MeterSphere

Open continuous testing platform with built-in AI assistant

MeterSphere is an open continuous testing tool with AI-assisted case generation, test management, and API testing for teams. It uses a system-organization-project hierarchy for collaboration.

★ 13.7k⟳ 1 month agoGPL-3.0

Karate

Unified open-source test automation framework

Karate combines API testing, mocks, performance testing, and UI automation in one framework with a readable syntax. Tests run via JUnit, a CLI, or CI/CD with parallel execution.

★ 9k⟳ 2 days agoMIT