Suggest a tool

WireMock vs Mock Service Worker: open-source test data and mocking tools compared

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

Summary

WireMock: HTTP API mocking tool that runs in unit tests, as a standalone server, or in a container.

Mock Service Worker: API mocking library for JavaScript that intercepts requests at the network level in browsers and Node.js.

Both are listed under Test data and mocking. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation; that does not mean the feature is absent.

Side by side

WireMock and Mock Service Worker: metrics and documented facts, in the fixed row order used for test data and mocking comparisons.
FactWireMockMock Service Worker
Stars7,378118,2161
Forks1,51916261
Contributors30911821
Last release2025-11-1412026-07-081
Last commit2026-09-2212026-09-081
Commits in 90 days1311121
LicenseApache-2.01MIT1
Primary languageJava1TypeScript1
Statusactive1active1
Languages for writing testsJava and JVM; community solutions for Python, Node.js, .NET, Go, Rust, Kotlin, Groovy and others source: Docs: WireMock JavaJavaScript source: README
ProtocolsHTTP-based protocols and REST; HTTPS, gRPC, GraphQL, webhooks; WebSockets (beta) source: Docs: WireMock JavaHTTP, GraphQL, WebSocket source: Docs: Quick start
Definition formatJava API, JSON files, JSON over HTTP; record and playback of stubs source: READMECode (request handlers passed to setupServer in Node.js or setupWorker in the browser) source: Docs: Quick start
Framework integrationsJUnit 5 Jupiter extension; JUnit 4 and Vintage source: Docs: JUnit 5+ JupiterVitest (quick start setup) source: Docs: Quick start
Install methodMaven or Gradle (org.wiremock:wiremock); standalone uber JAR source: Docs: Download and Installationnpm (npm i msw --save-dev) source: Docs: Quick start

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

When each fits

Written from each project's documented scope, not from preference. Neither tool is ranked.

WireMock

Fits projects that need stable test and development environments with simulated APIs; its README describes running in unit tests, as a standalone process or in a container. source: README

Mock Service Worker

Fits projects that mock APIs in the browser and in Node.js; its docs describe intercepting outgoing requests and answering them with mocked responses. source: Docs: Introduction

More on these tools

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: repository, read
  3. GitHub REST API: contributors, read
  4. GitHub REST API: contributors, read
  5. GitHub REST API: latest release, read
  6. GitHub REST API: latest release, read
  7. GitHub REST API: commits, read
  8. GitHub REST API: commits, read
  9. Docs: WireMock Java, read
  10. README, read
  11. Docs: Quick start, read
  12. README, read
  13. Docs: JUnit 5+ Jupiter, read
  14. Docs: Download and Installation, read
  15. Docs: Introduction, read

Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.